Skip to content

wpt_should_block_status

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

Apply filters against this post to determine whether it should be allowed to be sent.

Auto-generated Example

add_filter(
   'wpt_should_block_status',
    function(
        bool $filter,
        array $post_info
    ) {
        // Your code here.
        return $filter;
    },
    10,
    2
);

Parameters

  • bool $filter Always false by default.
  • array $post_info Array of post data.

Returns

bool True to block post.

Files

apply_filters( 'wpt_should_block_status', false, $post_info )

← All Hooks

Clone this wiki locally