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

Automattic\WooCommerce\Admin\Features

Features::add_features_settings() public WC 1.0

Adds the Features settings.

{} Это метод класса: Features{}

Возвращает

Массив.

Использование

$result = Features::add_features_settings( $settings, $current_section );
$settings(массив) (обязательный)
Settings.
$current_section(строка) (обязательный)
Current section slug.

Код Features::add_features_settings() WC 6.1.1

public static function add_features_settings( $settings, $current_section ) {
	if ( 'features' !== $current_section ) {
		return $settings;
	}

	$features = apply_filters(
		'woocommerce_settings_features',
		array()
	);

	$features_disabled = apply_filters( 'woocommerce_admin_disabled', false );

	if ( ! $features_disabled && empty( $features ) ) {
		return $settings;
	}

	$desc          = __( 'Start using new features that are being progressively rolled out to improve the store management experience.', 'woocommerce' );
	$disabled_desc = __( 'WooCommerce features have been disabled.', 'woocommerce' );

	if ( $features_disabled ) {
		$GLOBALS['hide_save_button'] = true;
	}

	return array_merge(
		array(
			array(
				'title' => __( 'Features', 'woocommerce' ),
				'type'  => 'title',
				'desc'  => $features_disabled ? $disabled_desc : $desc,
				'id'    => 'features_options',
			),
		),
		$features_disabled ? array() : $features,
		array(
			array(
				'type' => 'sectionend',
				'id'   => 'features_options',
			),
		)
	);
}