Recent

bsearch_exclude_post_ids filter Pro only

bsearch_exclude_post_ids

Filters the post IDs to exclude from search results.

Type: filter
Since: 4.2.0
Source: includes/class-multisite-search.php line 559

Parameters

TypeNameDescription
array$exclude_post_idsArray of post IDs to exclude.
array$argsQuery variables.

Usage

add_filter( 'bsearch_exclude_post_ids', function($exclude_post_ids, $args) {
    // ...
    return $exclude_post_ids;
} );