woocommerce_checkout_registration_required

FILTER woocommerce\includes\class-wc-checkout.php (ligne 207) github
Controls if registration is required in order for checkout to be completed.

Paramètres

Entrée :
'yes' !== get_option( 'woocommerce_enable_guest_checkout'
Sortie :
@param bool $checkout_registration_required If customers must be registered to checkout.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_checkout_registration_required'
add_filter('woocommerce_checkout_registration_required', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre('yes' !== get_option( 'woocommerce_enable_guest_checkout') {
    // Modifier la valeur
    return 'yes' !== get_option( 'woocommerce_enable_guest_checkout';
}

Actualités

Chargement des actualités...