Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

AbstractOrderConfirmationBlock::allow_guest_checkout()protectedWC 1.0

See if guest checkout is enabled.

Method of the class: AbstractOrderConfirmationBlock{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->allow_guest_checkout();

AbstractOrderConfirmationBlock::allow_guest_checkout() code WC 8.9.0

protected function allow_guest_checkout() {
	return 'yes' === get_option( 'woocommerce_enable_guest_checkout' );
}