enable_loading_advanced_cache_dropin filter-hookWP-CLI 4.6.0

Это хук WordPress - enable_loading_advanced_cache_dropin. Плагин его просто использует.

Filters whether to enable loading of the advanced-cache.php drop-in.

This filter runs before it can be used by plugins. It is designed for non-web run-times. If false is returned, advance-cache.php will never be loaded.


add_filter( 'enable_loading_advanced_cache_dropin', 'wp_kama_enable_loading_advanced_cache_dropin_filter' );

 * Function for `enable_loading_advanced_cache_dropin` filter-hook.
 * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present).
 * @return bool
function wp_kama_enable_loading_advanced_cache_dropin_filter( $enable_advanced_cache ){

	// filter...
	return $enable_advanced_cache;
Whether to enable loading advanced-cache.php (if present).
Default: true


Since 4.6.0 Introduced.

Where the hook is called

In file: /php/wp-settings-cli.php
wp-cli/php/wp-settings-cli.php 116
if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) {

Where the hook is used in WP CLI

Usage not found.