Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
CreateAccount::is_feature_enabled
Returns if delayed account creation is enabled.
Метод класса: CreateAccount{}
Хуков нет.
Возвращает
true|false.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_feature_enabled();
Код CreateAccount::is_feature_enabled() CreateAccount::is feature enabled WC 10.8.1
protected function is_feature_enabled() {
return get_option( 'woocommerce_enable_delayed_account_creation', 'yes' ) === 'yes';
}