
如何开发一款WordPress子主题
apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' )
wp_cache_themes_persistently 函数是一个 WordPress 核心函数: 这个函数决定是否使用持久缓存存储主题信息。如果使用持久缓存,则此函数将返回 true,否则返回 false。
这个动作在wp-includes/theme.php中有记录。
self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' );