WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана


CreateAccount::is_feature_enabled() private WC 1.0

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

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

Хуков нет.


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


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

Код CreateAccount::is_feature_enabled() WC 5.6.0

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', '>=' );