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.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More