wp_super_cache_clear_post_cache

wp_super_cache_clear_post_cache

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-super-cache.2.0.0

apply_filters('wp_super_cache_clear_post_cache') is found 3 times:

  • /wp-cache-phase2.php line 3185
    3181
    3182
    3183
    3184
    3185
    3186
    3187
    3188
    3189
    3190
    3191
        return;
    }
     
    // Allow plugins to reject cache clears for specific posts.
    if ( ! apply_filters( 'wp_super_cache_clear_post_cache', true, $post ) ) {
        return;
    }
     
    if ( ( $old_status === 'private' || $old_status === 'publish' ) && $new_status !== 'publish' ) { // post unpublished
        if ( ! function_exists( 'get_sample_permalink' ) ) {
            require_once ABSPATH . 'wp-admin/includes/post.php';
  • /wp-cache-phase2.php line 3225
    3221
    3222
    3223
    3224
    3225
    3226
    3227
    3228
    3229
    3230
    3231
        return $post_id;
    }
     
    // Allow plugins to reject cache clears for specific posts.
    if ( ! apply_filters( 'wp_super_cache_clear_post_cache', true, $post ) ) {
        return $post_id;
    }
     
    // Some users are inexplicibly seeing this error on scheduled posts.
    // define this constant to disable the post status check.
    if ( ! defined( 'WPSCFORCEUPDATE' ) && ! in_array( get_post_status( $post ), array( 'publish', 'private' ), true ) ) {
  • /wp-cache-phase2.php line 3299
    3295
    3296
    3297
    3298
    3299
    3300
    3301
    3302
    3303
    3304
    3305
        return $post_id;
    }
     
    // Allow plugins to reject cache clears for specific posts.
    if ( ! apply_filters( 'wp_super_cache_clear_post_cache', true, $post ) ) {
        return $post_id;
    }
     
    // Some users are inexplicibly seeing this error on scheduled posts.
    // define this constant to disable the post status check.
    if ( ! defined( 'WPSCFORCEUPDATE' ) && ! in_array( get_post_status( $post ), array( 'publish', 'private' ), true ) ) {