Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

CreateAccount::is_feature_enabled │ protected │ WC 1.0

Returns if delayed account creation is enabled.

Метод класса: CreateAccount{}

Хуков нет.

Возвращает

bool.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_feature_enabled();

Код CreateAccount::is_feature_enabled() WC 11.3.0

protected function is_feature_enabled() {
	return get_option( 'woocommerce_enable_delayed_account_creation', 'no' ) === 'yes';
}