wp_super_cache_clear_post_cache
wp_super_cache_clear_post_cache
Appears in: wp-super-cache.1.10.0, wp-super-cache.1.11.0, wp-super-cache.1.12.0, wp-super-cache.1.12.1, wp-super-cache.1.12.3, wp-super-cache.1.12.4, wp-super-cache.1.9.3, wp-super-cache.1.9.4, wp-super-cache.2.0.0
Hook Type: filter
Displaying hooks found in version: wp-super-cache.2.0.0apply_filters('wp_super_cache_clear_post_cache') is found 3 times:
- /wp-cache-phase2.php line 318531813182318331843185318631873188318931903191
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 322532213222322332243225322632273228322932303231
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 329932953296329732983299330033013302330333043305
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 ) ) {