load_default_widgets

FILTER wp-includes\functions.php (ligne 5437) github
Filters whether to load the Widgets library. Returning a falsey value from the filter will effectively short-circuit the Widgets library from loading.

Paramètres

Entrée :
true
Sortie :
@param bool $wp_maybe_load_widgets Whether to load the Widgets library.

Utilisation

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

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

Actualités

Chargement des actualités...