Automattic\WooCommerce\Admin\Features
Features::get_optional_feature_options
Deprecated since 1.1.0. It is no longer supported and may be removed in future releases. Use
FeaturesUtil::feature_is_enabled() to check if a feature is enabled instead.Gets the optional feature options as an associative array that can be toggled on or off.
Method of the class: Features{}
No Hooks.
Returns
array.
Usage
$result = Features::get_optional_feature_options();
Changelog
| Deprecated since 11.1.0 | Use FeaturesUtil::feature_is_enabled() to check if a feature is enabled. |
Features::get_optional_feature_options() Features::get optional feature options code WC 11.3.0
public static function get_optional_feature_options() {
wc_deprecated_function( __METHOD__, '11.1.0', 'FeaturesUtil::feature_is_enabled()' );
return array(
'analytics' => Analytics::TOGGLE_OPTION_NAME,
'remote-inbox-notifications' => RemoteInboxNotifications::TOGGLE_OPTION_NAME,
);
}