Automattic\WooCommerce\Internal\Features

FeaturesController::add_features_section()privateWC 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.

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

// private - только в коде основоного (родительского) класса
$result = $this->add_features_section( $sections );
$sections(массив) (обязательный)
The original sections array.

Код FeaturesController::add_features_section() WC 8.7.0

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