Automattic\WooCommerce\Internal\Admin

SettingsNavigationFeature::add_feature_toggle()public staticWC 1.0

Add the feature toggle to the features settings.

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

Хуков нет.

Возвращает

Массив.

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

$result = SettingsNavigationFeature::add_feature_toggle( $features );
$features(массив) (обязательный)
Feature sections.

Код SettingsNavigationFeature::add_feature_toggle() WC 6.6.1

public static function add_feature_toggle( $features ) {
	$features[] = array(
		'title' => __( 'Settings', 'woocommerce' ),
		'desc'  => __(
			'Adds the new WooCommerce settings UI.',
			'woocommerce'
		),
		'id'    => 'woocommerce_settings_enabled',
		'type'  => 'checkbox',
	);

	return $features;
}