Twitter Tools Plugin Mod
-
Hi Guys,
I’m using the twitter tools plugin. I’m looking to edit this code so that it shows a twitter hash tag at the end of the message. Only thing is I want the hash tag to be whatever category I have choosen. Anyone got any idea how to do it?
I think there should be some code at this place marked *** below something like $tweet->tw_text .= $tweet .’ #’ .this->category_title;
Here is some of the code from the plugin.
// check for private posts if ($post->post_status == 'private') { return; } $tweet = new aktt_tweet; $url = apply_filters('tweet_blog_post_url', get_permalink($post_id)); $tweet->tw_text = sprintf(__($this->tweet_format, 'twitter-tools'), @html_entity_decode($post->post_title, ENT_COMPAT, 'UTF-8'), $url); *** $tweet = apply_filters('aktt_do_blog_post_tweet', $tweet, $post); // return false here to not tweet if (!$tweet) { return; } $this->do_tweet($tweet); add_post_meta($post_id, 'aktt_tweeted', '1', true); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Twitter Tools Plugin Mod’ is closed to new replies.