Title: Twitter Tools Plugin Mod
Last modified: August 19, 2016

---

# Twitter Tools Plugin Mod

 *  [huntz](https://wordpress.org/support/users/huntz/)
 * (@huntz)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [huntz](https://wordpress.org/support/users/huntz/)
 * (@huntz)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/twitter-tools-plugin-mod/#post-1297445)
 * Hi guys,
 * Does anyone know if this is possible or not?
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Twitter Tools Plugin Mod’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [huntz](https://wordpress.org/support/users/huntz/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/twitter-tools-plugin-mod/#post-1297445)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
