WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plug-in: Twitter Tools] Change title of posts

[Resolved] [Plug-in: Twitter Tools] Change title of posts

  • Thought I’d post this since there were 2 or 3 threads on this topic and no solution. Also, I’m not an expert by any means so if I screwed something up royally, I’d love to hear about it:

    For people looking to change the title of your posts converted from tweets, in this part of the plugin code:

    function do_tweet_post($tweet) {
    		global $wpdb;
    		remove_action('publish_post', 'aktt_notify_twitter', 99);
    		$data = array(
    			'post_content' => $wpdb->escape(aktt_make_clickable($tweet->tw_text))
    			, 'post_title' => $wpdb->escape(trim_add_elipsis($tweet->tw_text, 30))

    Change $wpdb->escape(trim_add_elipsis($tweet->tw_text, 30))
    to , 'post_title' => 'Tweet' or whatever you like. No idea if that $wpdb bit is important or not though.

  • The topic ‘[Resolved] [Plug-in: Twitter Tools] Change title of posts’ is closed to new replies.
Skip to toolbar