Remove a cart item.
$cart_item_key, $this
Sortie :
@param string $cart_item_key Cart item key to remove from the cart. @return bool
// Ajouter une fonction au hook action 'woocommerce_cart_item_removed'
add_action('woocommerce_cart_item_removed', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($cart_item_key, $this) {
// Votre code ici
error_log('Hook woocommerce_cart_item_removed déclenché');
}
Chargement des actualités...