Recent

crp_exclude_post_ids filter

crp_exclude_post_ids

Filter exclude post IDs array.

Type: filter
Since: 3.2.0
Source: includes/class-crp-core-query.php line 1432

Parameters

TypeNameDescription
array$exclude_post_idsArray of post IDs.
array$argsArguments array.
\WP_Post$source_postSource post.

Usage

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