-
Notifications
You must be signed in to change notification settings - Fork 4
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.
add_filter(
'wpt_should_block_status',
function(
bool $filter,
array $post_info
) {
// Your code here.
return $filter;
},
10,
2
);-
bool$filterAlways false by default. -
array$post_infoArray of post data.
bool True to block post.
apply_filters( 'wpt_should_block_status', false, $post_info )