Automattic\WooCommerce\Internal\Features
FeaturesController::add_features_section
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() 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;
}