woocommerce_show_autoinstalled_plugin_notices

FILTER woocommerce\src\Internal\Utilities\PluginInstaller.php (ligne 241) github
Filter to suppress the notice about autoinstalled plugins in the plugins list page.

Paramètres

Entrée :
'__return_true'
Sortie :
@param bool $display_notice Whether notices should be displayed or not.
@returns bool

Utilisation

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

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

Actualités

Chargement des actualités...