Skip to content

wpt_auto_tweet_allowed

github-actions[bot] edited this page Jun 19, 2026 · 2 revisions

Return true if auto tweeting of old posts is enabled.

Auto-generated Example

add_filter(
   'wpt_auto_tweet_allowed',
    function(
        bool $return,
        int $post_id
    ) {
        // Your code here.
        return $return;
    },
    10,
    2
);

Parameters

  • bool $return true if enabled.
  • int $post_id Post ID.

Returns

bool

Files

apply_filters( 'wpt_auto_tweet_allowed', $return, $post_id )

← All Hooks

Clone this wiki locally