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.

Method of the class: FeaturesController{}

No Hooks.

Returns

Array. The updated sections array.

Usage

$FeaturesController = new FeaturesController();
$FeaturesController->add_features_section( $sections );
$sections(array) (required)
The original sections array.

FeaturesController::add_features_section() code WC 10.3.3

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