Automattic\WooCommerce\Internal\Admin

SettingsNavigationFeature::add_feature_toggle()public staticWC 1.0

Add the feature toggle to the features settings.

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

No Hooks.

Return

Array.

Usage

$result = SettingsNavigationFeature::add_feature_toggle( $features );
$features(array) (required)
Feature sections.

Code of SettingsNavigationFeature::add_feature_toggle() WC 7.1.0

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;
}