Automattic\WooCommerce\Internal\Features

FeaturesController::init_features()publicWC 1.0

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$FeaturesController = new FeaturesController();
$FeaturesController->'description'     => __( foo, fooo ),;
foo (обязательный)
-
fooo (обязательный)
-

Код FeaturesController::init_features() WC 8.7.0

'description'     => __( 'Try the new product editor (Beta)', 'woocommerce' ),
'is_experimental' => true,
'disable_ui'      => false,
'is_legacy'       => true,
'disabled'        => function() {
	return version_compare( get_bloginfo( 'version' ), '6.2', '<' );
},
'desc_tip'        => function() {
	$string = '';
	if ( version_compare( get_bloginfo( 'version' ), '6.2', '<' ) ) {
		$string = __(
			'⚠ This feature is compatible with WordPress version 6.2 or higher.',
			'woocommerce'