Skip to content

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.

Auto-generated Example

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

Parameters

  • bool $filter True if this post should not have a status update sent.
  • array $post POST global.

Returns

bool

Files

apply_filters( 'wpt_filter_post_data', false, $_POST )

← All Hooks

Clone this wiki locally