Automattic\WooCommerce\Admin\Features
Features::get_optional_feature_options
Устарела с версии 1.1.0. Больше не поддерживается и может быть удалена. Используйте
FeaturesUtil::feature_is_enabled() to check if a feature is enabled.Gets the optional feature options as an associative array that can be toggled on or off.
Метод класса: Features{}
Хуков нет.
Возвращает
array.
Использование
$result = Features::get_optional_feature_options();
Список изменений
| Устарела с 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 WC 11.1.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,
);
}