Ignore/remove direct tweets: Twitter Tools Feature code
-
Alex King,
I use Twitter and thus Twitter Tools to create Aside posts. I do not like these Asides to include direct tweets (prefaced with ‘@’). The following code removes all Tweets that begin with ‘@’. I have my code addition hard-coded, but this would be a great option to include within the Plugins Options page and wanted to share this option with the WordPress Plugin community.
– – – – – – – – – – – –
Insert at line 213
– – – – – – – – – – – –if(substr($data["post_content"], 0, 1) != '@') { $post_id = wp_insert_post($data); add_post_meta($post_id, 'aktt_twitter_id', $tweet->tw_id, true); }Now my only Asides posts (tweets) are non-direct tweets (which makes much more sense to me then listing half conversations that people can’t follow by reading your website).
The topic ‘Ignore/remove direct tweets: Twitter Tools Feature code’ is closed to new replies.