woocommerce_admin_should_load_features

FILTER woocommerce\src\Admin\Features\Features.php (ligne 401) github
Filter to determine if admin features should be loaded.

Paramètres

Entrée :
$should_load
Sortie :
@param boolean $should_load Whether admin features should be loaded. It defaults to true when the current request is in an admin context.

Utilisation

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

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

Actualités

Chargement des actualités...