Automattic\WooCommerce\Internal\Features

FeaturesController::add_features_sectionpublicWC 1.0

Handler for the 'woocommerce_get_sections_advanced' hook, it adds the "Features" section to the advanced settings page.

Метод класса: FeaturesController{}

Хуков нет.

Возвращает

Массив. The updated sections array.

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

$FeaturesController = new FeaturesController();
$FeaturesController->add_features_section( $sections );
$sections(массив) (обязательный)
The original sections array.

Код FeaturesController::add_features_section() WC 10.5.0

public function add_features_section( $sections ) {
	if ( ! isset( $sections['features'] ) ) {
		$sections['features'] = __( 'Features', 'woocommerce' );
	}
	return $sections;
}