wp_cache_themes_persistently WordPress Filter Hook
The wp_cache_themes_persistently hook is a great way to ensure that your WordPress site's themes are always cached, even when the server is restarted. This can help improve performance, especially if you have a lot of themes installed.
apply_filters( 'wp_cache_themes_persistently', bool $cache_expiration , string $context ) #
Filters whether to get the cache of the registered theme directories.
Parameters
- $cache_expiration
(bool)Whether to get the cache of the theme directories. Default false.
- $context
(string)The class or function name calling the filter.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |