site_status_should_suggest_persistent_object_cache

FILTER wp-admin\includes\class-wp-site-health.php (ligne 3597) github
Filters whether to suggest use of a persistent object cache and bypass default threshold checks. Using this filter allows to override the default logic, effectively short-circuiting the method.

Paramètres

Entrée :
null
Sortie :
@param bool|null $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache.

Utilisation

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

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

Actualités

Chargement des actualités...