Controls if registration is required in order for checkout to be completed.
'yes' !== get_option( 'woocommerce_enable_guest_checkout'
Sortie :
@param bool $checkout_registration_required If customers must be registered to checkout.
// 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';
}
Chargement des actualités...