W3cubDocs

/WordPress

apply_filters( ‘wp_theme_files_cache_ttl’, int $cache_expiration, string $cache_type )

Filters the cache expiration time for theme files.

Parameters

$cache_expirationint
Cache expiration time in seconds.
$cache_typestring
Type of cache being set.

Source

$cache_expiration = (int) apply_filters( 'wp_theme_files_cache_ttl', self::$cache_expiration, 'theme_block_patterns' );

Changelog

Version Description
6.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_theme_files_cache_ttl