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