WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 84 | * |
| 85 | * This filter runs before it can be used by plugins. It is designed for non-web |
| 86 | * run-times. If false is returned, advanced-cache.php will never be loaded. |
| 87 | * |
| 88 | * @since 4.6.0 |
| 89 | * |
| 90 | * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present). |
| 91 | * Default true. |
| 92 | */ |
| 93 | if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) { |
| 94 | // For an advanced caching plugin to use. Uses a static drop-in because you would only want one. |
| 95 | WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); |
| 96 | |
| 97 | // Re-initialize any hooks added manually by advanced-cache.php |
| 98 | if ( $wp_filter ) { |
| 99 | $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter ); |
| 100 | } |
| 101 | } |
| 102 | |