woocommerce_show_addons_page

FILTER woocommerce\includes\admin\class-wc-admin-menus.php (ligne 58) github
Controls whether we add a submenu item for the WooCommerce Addons page. Woo Express uses this filter.

Paramètres

Entrée :
true
Sortie :
@param bool $show_addons_page If the addons page should be included.

Utilisation

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

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

Actualités

Chargement des actualités...