Automattic\WooCommerce\Admin\Features
Features::get_optional_feature_options
Gets the optional feature options as an associative array that can be toggled on or off.
Метод класса: Features{}
Хуков нет.
Возвращает
Массив
.
Использование
$result = Features::get_optional_feature_options();
Код Features::get_optional_feature_options() Features::get optional feature options WC 9.9.3
public static function get_optional_feature_options() { $features = array(); foreach ( array_keys( self::$optional_features ) as $optional_feature_key ) { $feature_class = self::get_feature_class( $optional_feature_key ); if ( $feature_class ) { $features[ $optional_feature_key ] = $feature_class::TOGGLE_OPTION_NAME; } } return $features; }