WordPress at Your Fingertips
function is not described

WC_Checkout::is_registration_enabled() public WC 3.0.0

Is registration enabled on the checkout page?

{} It's a method of the class: WC_Checkout{}

Return

true|false.

Usage

$WC_Checkout = new WC_Checkout();
$WC_Checkout->is_registration_enabled();

Changelog

Since 3.0.0 Introduced.

Code of WC_Checkout::is_registration_enabled() WC 5.9.0

public function is_registration_enabled() {
	return apply_filters( 'woocommerce_checkout_registration_enabled', 'yes' === get_option( 'woocommerce_enable_signup_and_login_from_checkout' ) );
}