Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Yes, that would probably work. It’ll only work if there are template tags included in the Tweet; if you completely write a custom Tweet, it won’t be run.

    I couldn’t swear to what would happen if you do that; I’ve never tried it. It might be that you’d get encoded information sent to Twitter, but it would be pretty easy to implement, so it’s not like you couldn’t just pull it out if you decided it wasn’t what you wanted.

    Thread Starter Adam Capriola

    (@adamcapriola)

    I ended up getting encoded characters. Oh well! It was worth a try. Here’s the filter in case anyone else wants to mess with this:

    /**
     * Texturize WP to Twitter tweets
     *
     */
    add_filter( 'wpt_custom_truncate', 'ac_wpt_custom_truncate', 10, 4 );
    
    function ac_wpt_custom_truncate( $post_tweet, $tweet, $post_ID, $retweet ) {
    
    	return wptexturize( $post_tweet );
    
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Best spot to filter tweets’ is closed to new replies.