woocommerce_calculate_totals

ACTION woocommerce\includes\class-wc-cart-totals.php (ligne 879) github
Main cart totals.

Paramètres

Entrée :
$this->cart
Sortie :
N/A

Utilisation

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

function ma_fonction_personnalisee($this->cart) {
    // Votre code ici
    error_log('Hook woocommerce_calculate_totals déclenché');
}

Actualités

Chargement des actualités...