enable_loading_object_cache_dropin

FILTER wp-includes\load.php (ligne 850) github
Filters whether to enable loading of the object-cache.php drop-in. This filter runs before it can be used by plugins. It is designed for non-web runtimes. If false is returned, object-cache.php will never be loaded.

Paramètres

Entrée :
true
Sortie :
@param bool $enable_object_cache Whether to enable loading object-cache.php (if present).

Utilisation

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

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

Actualités

Chargement des actualités...