woocommerce_admin_is_loading

FILTER woocommerce\src\Internal\Admin\Loader.php (ligne 192) github
Some routes or features like onboarding hide the wp-admin navigation and masterbar. Setting `woocommerce_admin_is_loading` to true allows us to premeptively hide these elements while the JS app loads. This class needs to be removed by those feature components (like <ProfileWizard />).

Paramètres

Entrée :
false
Sortie :
@param bool $is_loading If WooCommerce Admin is loading a fullscreen view.

Utilisation

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

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

Actualités

Chargement des actualités...