Determines if customer registration is enabled during checkout.
'yes' === get_option( 'woocommerce_enable_signup_and_login_from_checkout'
Sortie :
@param bool $checkout_registration_enabled If checkout registration is enabled.
// 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';
}
Chargement des actualités...