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.

Method of the class: FeaturesController{}

No Hooks.

Return

Array. The updated sections array.

Usage

// private - for code of main (parent) class only
$result = $this->add_features_section( $sections );
$sections(array) (required)
The original sections array.

FeaturesController::add_features_section() code WC 7.1.0

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