Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
AbstractOrderConfirmationBlock::allow_guest_checkout
See if guest checkout is enabled.
Method of the class: AbstractOrderConfirmationBlock{}
No Hooks.
Returns
true|false.
Usage
// protected - for code of main (parent) or child class $result = $this->allow_guest_checkout();
AbstractOrderConfirmationBlock::allow_guest_checkout() AbstractOrderConfirmationBlock::allow guest checkout code WC 10.5.0
protected function allow_guest_checkout() {
return 'yes' === get_option( 'woocommerce_enable_guest_checkout' );
}