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 |
---|---|
80 | * |
81 | * This filter runs before it can be used by plugins. It is designed for non-web |
82 | * run-times. If false is returned, advanced-cache.php will never be loaded. |
83 | * |
84 | * @since 4.6.0 |
85 | * |
86 | * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present). |
87 | * Default true. |
88 | */ |
89 | if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) && file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) ) { |
90 | // For an advanced caching plugin to use. Uses a static drop-in because you would only want one. |
91 | include( WP_CONTENT_DIR . '/advanced-cache.php' ); |
92 |
|
93 | // Re-initialize any hooks added manually by advanced-cache.php |
94 | if ( $wp_filter ) { |
95 | $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter ); |
96 | } |
97 | } |
98 |
|