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 |
---|---|
75 | * |
76 | * This filter runs before it can be used by plugins. It is designed for non-web |
77 | * run-times. If false is returned, advanced-cache.php will never be loaded. |
78 | * |
79 | * @since 4.6.0 |
80 | * |
81 | * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present). |
82 | * Default true. |
83 | */ |
84 | if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) { |
85 | // For an advanced caching plugin to use. Uses a static drop-in because you would only want one. |
86 | WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); |
87 | } |
88 |
|
89 | // Define WP_LANG_DIR if not set. |
90 | wp_set_lang_dir(); |
91 |
|
92 | // Load early WordPress files. |
93 | require( ABSPATH . WPINC . '/compat.php' ); |