wp_cache_themes_persistently filter-hook . WP 3.4.0
Filters whether to get the cache of the registered theme directories.
Usage
add_filter( 'wp_cache_themes_persistently', 'filter_function_name_3167', 10, 2 ); function filter_function_name_3167( $cache_expiration, $context ){ // filter... return $cache_expiration; }
- $cache_expiration(true/false)
- Whether to get the cache of the theme directories.
Default: false - $context(string)
- The class or function name calling the filter.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
wp_cache_themes_persistently
wp_cache_themes_persistently
wp-includes/theme.php 475
$cache_expiration = apply_filters( 'wp_cache_themes_persistently', false, 'search_theme_directories' );
wp-includes/class-wp-theme.php 195
self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' );