WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\Features

Features::get_optional_feature_options() public WC 1.0

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() WC 5.7.1

public static function get_optional_feature_options() {
	$features = [];

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