WC_Checkout::is_registration_enabled()
Is registration enabled on the checkout page?
Method of the class: WC_Checkout{}
Hooks from the method
Return
true|false
.
Usage
$WC_Checkout = new WC_Checkout(); $WC_Checkout->is_registration_enabled();
Changelog
Since 3.0.0 | Introduced. |
WC_Checkout::is_registration_enabled() WC Checkout::is registration enabled code WC 7.7.0
public function is_registration_enabled() { /** * Determines if customer registration is enabled during checkout. * * @since 3.0.0 * * @param bool $checkout_registration_enabled If checkout registration is enabled. */ return apply_filters( 'woocommerce_checkout_registration_enabled', 'yes' === get_option( 'woocommerce_enable_signup_and_login_from_checkout' ) ); }