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
| Type | Name | Description |
|---|---|---|
array | $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;
} );