WordPress at Your Fingertips
function is not described

WC_Checkout::is_registration_required() public WC 3.0.0

Is registration required to checkout?

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

Return

true|false.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_Checkout::is_registration_required() WC 5.9.0

public function is_registration_required() {
	return apply_filters( 'woocommerce_checkout_registration_required', 'yes' !== get_option( 'woocommerce_enable_guest_checkout' ) );
}