Automattic\WooCommerce\Admin\Features\Navigation
Init::add_feature_toggle()
Deprecated from version 7.0. It is no longer supported and can be removed in future releases. See
FeaturesController class)
.Add the feature toggle to the features settings.
Method of the class: Init{}
No Hooks.
Return
Array
.
Usage
$result = Init::add_feature_toggle( $features );
- $features(array) (required)
- Feature sections.
Changelog
Deprecated since 7.0 | The WooCommerce Admin features are now handled by the WooCommerce features engine (see the FeaturesController class). |
Init::add_feature_toggle() Init::add feature toggle code WC 8.7.0
public static function add_feature_toggle( $features ) { return $features; }