Yoast\WP\SEO\should_invalidate_opcache
Filter: 'Yoast\WP\SEO\should_invalidate_opcache' - Allow developers to enable / disable opcache invalidation upon upgrade of the Yoast SEO plugin.
Использование
add_filter( 'Yoast\WP\SEO\should_invalidate_opcache', 'wp_kama_Yoast\WP\SEO\should_invalidate_opcache_filter' );
/**
* Function for `Yoast\WP\SEO\should_invalidate_opcache` filter-hook.
*
* @param bool $should_invalidate Whether opcache should be invalidated.
*
* @return bool
*/
function wp_kama_Yoast\WP\SEO\should_invalidate_opcache_filter( $should_invalidate ){
// filter...
return $should_invalidate;
}
- $should_invalidate(true|false)
- Whether opcache should be invalidated.
Список изменений
| С версии 26.1 | Введена. |
Где вызывается хук
Yoast\WP\SEO\should_invalidate_opcache
yoast/wp-seo-main.php 344
$should_invalidate_opcache = (bool) apply_filters( 'Yoast\WP\SEO\should_invalidate_opcache', $should_invalidate_opcache );