• Resolved Marc_O

    (@marc_o)


    Hello,
    In the “old” version of Mashshare i’ve changed the code in the “class.mashsharer.php” file so the url shared when we use the Twitter button is a shortlink (bitly) and not the permalink.
    This is the code i used, i’ve just put wp_get_shortlink() in the code instead of the initinal code.
    <a class="twitter" onclick="javascript:mashTwSharrer(\'' . wp_get_shortlink() . '\', \'' . html_entity_decode(get_the_title()) . $hashtag . '\', \'Twitter share popup\', \'https://goo.gl/dS52U\', 520, 350)" href="javascript:void(0)">Partager sur Twitter</a>
    In the new version of the plugin i didn’t find where i can change the link used by Twitter to do the same.
    Thanks for your answer.

    https://www.ads-software.com/plugins/mashsharer/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use shortlink ulr for Twitter in V2 ?’ is closed to new replies.