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 | 
|---|---|
| 674 |       * | 
| 675 |       * This filter runs before it can be used by plugins. It is designed for non-web | 
| 676 |       * runtimes. If false is returned, object-cache.php will never be loaded. | 
| 677 |       * | 
| 678 |       * @since 5.8.0 | 
| 679 |       * | 
| 680 |       * @param bool $enable_object_cache Whether to enable loading object-cache.php (if present). | 
| 681 |       *                                  Default true. | 
| 682 |       */ | 
| 683 |      if ( $first_init && apply_filters( 'enable_loading_object_cache_dropin', true ) ) { | 
| 684 |           if ( ! function_exists( 'wp_cache_init' ) ) { | 
| 685 |                /* | 
| 686 |                 * This is the normal situation. First-run of this function. No | 
| 687 |                 * caching backend has been loaded. | 
| 688 |                 * | 
| 689 |                 * We try to load a custom caching backend, and then, if it | 
| 690 |                 * results in a wp_cache_init() function existing, we note | 
| 691 |                 * that an external object cache is being used. | 
| 692 |                 */ |