woocommerce_settings_features хук-фильтрWC 1.0

Adds the Features section to the advanced tab of WooCommerce Settings

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

add_filter( 'woocommerce_settings_features', 'wp_kama_woocommerce_settings_features_filter' );

/**
 * Function for `woocommerce_settings_features` filter-hook.
 * 
 * @param array $sections Sections.
 *
 * @return array
 */
function wp_kama_woocommerce_settings_features_filter( $sections ){

	// filter...
	return $sections;
}
$sections(массив)
Sections.

Где вызывается хук

Features::add_features_section()
woocommerce_settings_features
Features::add_features_settings()
woocommerce_settings_features
woocommerce/src/Admin/Features/Features.php 255-258
$features = apply_filters(
	'woocommerce_settings_features',
	array()
);
woocommerce/src/Admin/Features/Features.php 280-283
$features = apply_filters(
	'woocommerce_settings_features',
	array()
);

Где используется хук в WooCommerce

woocommerce/src/Admin/Features/Navigation/Init.php 30
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );
woocommerce/src/Internal/Admin/Analytics.php 46
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );
woocommerce/src/Internal/Admin/SettingsNavigationFeature.php 45
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );