woocommerce_check_cart_items

ACTION woocommerce\src\StoreApi\Utilities\CartController.php (ligne 525) github
Fires when cart items are being validated. Allow 3rd parties to validate cart items. This is a legacy hook from Woo core. This filter will be deprecated because it encourages usage of wc_add_notice. For the API we need to capture notices and convert to wp errors instead.

Paramètres

Entrée :
N/A
Sortie :
N/A

Utilisation

// Ajouter une fonction au hook action 'woocommerce_check_cart_items'
add_action('woocommerce_check_cart_items', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee() {
    // Votre code ici
    error_log('Hook woocommerce_check_cart_items déclenché');
}

Actualités

Chargement des actualités...