Recent

bsearch_exclude_post_idsfilter

bsearch_exclude_post_ids

Filters the post IDs excluded from search results.

Type: filter
Since: 3.0.0
Source: includes/class-better-search-core-query.php line 442

Parameters

Type Name Description
int[] $exclude_post_ids Array of post IDs to exclude.
array $args Query variables.

Usage

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