wp_cache_themes_persistently

FILTER wp-includes\theme.php (ligne 487) github
Filters whether to get the cache of the registered theme directories.

Paramètres

Entrée :
false, 'search_theme_directories'
Sortie :
@param bool   $cache_expiration Whether to get the cache of the theme directories. Default false.
@param string $context          The class or function name calling the filter.

Utilisation

// Modifier la valeur avec le filtre 'wp_cache_themes_persistently'
add_filter('wp_cache_themes_persistently', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(false) {
    // Modifier la valeur
    return false;
}

Actualités

Chargement des actualités...