woocommerce_checkout_registration_enabled

FILTER woocommerce\includes\class-wc-checkout.php (ligne 224) github
Determines if customer registration is enabled during checkout.

Paramètres

Entrée :
'yes' === get_option( 'woocommerce_enable_signup_and_login_from_checkout'
Sortie :
@param bool $checkout_registration_enabled If checkout registration is enabled.

Utilisation

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

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

Actualités

Chargement des actualités...