-
Notifications
You must be signed in to change notification settings - Fork 4
wpt_filter_post_data
github-actions[bot] edited this page Jun 19, 2026
·
2 revisions
Return true to block this post based on POST data. Default false.
add_filter(
'wpt_filter_post_data',
function(
bool $filter,
array $post
) {
// Your code here.
return $filter;
},
10,
2
);-
bool$filterTrue if this post should not have a status update sent. -
array$postPOST global.
bool
apply_filters( 'wpt_filter_post_data', false, $_POST )