WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\Domain\Services

CreateAccount::is_feature_enabled() private WC 1.0

Single method for feature gating logic. Used to gate all non-private methods.

{} It's a method of the class: CreateAccount{}

No Hooks.

Return

True. if Checkout sign-up feature should be made available.

Usage

// private - for code of main (parent) class only
$result = $this->is_feature_enabled();

Code of CreateAccount::is_feature_enabled() WC 5.0.0

<?php
private function is_feature_enabled() {
	// Checkout signup is feature gated to WooCommerce 4.7 and newer;
	// uses updated my-account/lost-password screen from 4.7+ for
	// setting initial password.
	// This service is feature gated to plugin only, to match the
	// availability of the Checkout block (feature plugin only).
	return $this->package->feature()->is_feature_plugin_build() && defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '4.7', '>=' );
}