Support » Plugin: WP Tweet Button » [Plugin: WP Tweet Button] Disable or Set a Custom original_referer

Viewing 1 replies (of 1 total)
  • Plugin Author Tanin

    (@0xtc)

    Yes, but it’s an ugly hack and it does have some consequences. You want to remove the URL that twitter uses to do all its magic. (If you remove it, the count won’t really work)

    Here’s how you remove it:
    1. Make sure you aren’t using any URL shorteners.
    2. Add your custom text as usual.
    3. Open up your theme’s function.php and add the following 2 lines to it:

    function wp_tweet_button_no_url(){return "#Something";}
    add_filter("wp_tweet_button_long_url","wp_tweet_button_no_url");

    You can replace #something with your own favorite hashtag. The result will be a button that won’t count retweets, but it will have whatever text you want in the Twitter popup box. When users click on the count (0), they’ll be taken to a Twitter search query with your selected hashtag.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Tweet Button] Disable or Set a Custom original_referer’ is closed to new replies.