Filter to suppress the notice about autoinstalled plugins in the plugins list page.
'__return_true'
Sortie :
@param bool $display_notice Whether notices should be displayed or not. @returns bool
// 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';
}
Chargement des actualités...