woocommerce_should_clear_cart_after_payment

FILTER woocommerce\includes\wc-cart-functions.php (ligne 219) github
Determine whether the cart should be cleared after payment.

Paramètres

Entrée :
$should_clear_cart_after_payment
Sortie :
@param bool $should_clear_cart_after_payment Whether the cart should be cleared after payment.

Utilisation

// 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;
}

Actualités

Chargement des actualités...