[Back to Docs]

How to extend TweetBoost to Custom Post Statuses

As of 9/24/2018 TweetBoostPRO is automatically initiated on the Published and Private post statuses for WordPress.

In the near future we hope to auto-detect custom post statuses and offer setting toggles where the user can easily enable/disable integration.

For now we have  a PHP filter that will allow us manually extend TweetBoostPRO to support post statuses.

PHP Filter:


Example usage :

/* Extends TweetBoostPRO to post statuses besides our default 'published' and 'private' post statuses - In this example we extend support to draft posts */
add_filter('tweet-boost-pro/registered-post-statuses' , 'extend_tweetboost_poststatuses' , 10 , 1 );

function extend_tweetboost_poststatuses( $post_statuses_array ) {
    $post_statuses_array[] = 'draft';
    return $post_statuses_array;