Recent

crp_related_cache_clear_idsfilter

Filters the post IDs whose cache is cleared after a related post is saved.

Type: filter
Since: 4.5.0
Source: includes/util/class-cache.php line 465

Parameters

Type Name Description
array $ids Array of post IDs.
int $post_id Post ID that was saved.

Usage

add_filter( 'crp_related_cache_clear_ids', function($ids, $post_id) {
    // ...
    return $ids;
} );