{"id":1297145,"date":"2009-12-03T20:03:26","date_gmt":"2009-12-03T20:03:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/twitter-tools-plugin-mod\/"},"modified":"2016-08-19T14:50:39","modified_gmt":"2016-08-19T14:50:39","slug":"twitter-tools-plugin-mod","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/twitter-tools-plugin-mod\/","title":{"rendered":"Twitter Tools Plugin Mod"},"content":{"rendered":"<p>Hi Guys,<\/p>\n<p>I&#8217;m using the twitter tools plugin. I&#8217;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?<\/p>\n<p>I think there should be some code at this place marked *** below something like $tweet-&gt;tw_text .= $tweet .&#8217; #&#8217; .this-&gt;category_title;<\/p>\n<p>Here is some of the code from the plugin.<\/p>\n<pre><code>\/\/ check for private posts\n\n                                if ($post-&gt;post_status == &#039;private&#039;) {\n\n                                                return;\n\n                                }\n\n                                $tweet = new aktt_tweet;\n\n                                $url = apply_filters(&#039;tweet_blog_post_url&#039;, get_permalink($post_id));\n\n                                $tweet-&gt;tw_text = sprintf(__($this-&gt;tweet_format, &#039;twitter-tools&#039;), @html_entity_decode($post-&gt;post_title, ENT_COMPAT, &#039;UTF-8&#039;), $url);\n\n***\n\n                                $tweet = apply_filters(&#039;aktt_do_blog_post_tweet&#039;, $tweet, $post); \/\/ return false here to not tweet\n\n                                if (!$tweet) {\n\n                                                return;\n\n                                }\n\n                                $this-&gt;do_tweet($tweet);\n\n                                add_post_meta($post_id, &#039;aktt_tweeted&#039;, &#039;1&#039;, true);\n\n                }<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1297145","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1297145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1297145\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1297145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}