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.
N/A
Sortie :
// 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é');
}
Chargement des actualités...