woocommerce_store_pages

FILTER woocommerce\src\Admin\WCAdminHelper.php (ligne 149) github
Filter the store pages array to check if a URL is a store page.

Paramètres

Entrée :
$store_pages
Sortie :
@param array $store_pages The store pages array. The keys are the page slugs and the values are the page IDs.

Utilisation

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

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

Actualités

Chargement des actualités...