Recent

crp_is_importingfilter

crp_is_importing

Filters whether the current request is treated as a bulk import.

When true, saving a post does not clear its related posts one by one; a single flush of the whole cache is scheduled once the request ends instead. Useful for importers that do not define the WP_IMPORTING constant.

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

Parameters

Type Name Description
bool $importing Whether this is a bulk import. Defaults to the WP_IMPORTING constant.

Usage

add_filter( 'crp_is_importing', function($importing) {
    // ...
    return $importing;
} );