Determine whether the cart should be cleared after payment.
$should_clear_cart_after_payment
Sortie :
@param bool $should_clear_cart_after_payment Whether the cart should be cleared after payment.
// Modifier la valeur avec le filtre 'woocommerce_should_clear_cart_after_payment'
add_filter('woocommerce_should_clear_cart_after_payment', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($should_clear_cart_after_payment) {
// Modifier la valeur
return $should_clear_cart_after_payment;
}
Chargement des actualités...