Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
AbstractOrderConfirmationBlock::allow_guest_checkout()
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() AbstractOrderConfirmationBlock::allow guest checkout code WC 9.6.0
protected function allow_guest_checkout() { return 'yes' === get_option( 'woocommerce_enable_guest_checkout' ); }