woocommerce_get_settings_(id) хук-фильтрWC 1.0

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

add_filter( 'woocommerce_get_settings_(id)', 'wp_kama_woocommerce_get_settings_id_filter', 10, 2 );

/**
 * Function for `woocommerce_get_settings_(id)` filter-hook.
 * 
 * @param  $settings   
 * @param  $section_id 
 *
 * @return 
 */
function wp_kama_woocommerce_get_settings_id_filter( $settings, $section_id ){

	// filter...
	return $settings;
}
$settings
-
$section_id
-

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

WC_Settings_Page::get_settings_for_section()
woocommerce_get_settings_(id)
woocommerce/includes/admin/settings/class-wc-settings-page.php 130
return apply_filters( 'woocommerce_get_settings_' . $this->id, $settings, $section_id );

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

woocommerce/src/Admin/Features/Features.php 63
add_filter( 'woocommerce_get_settings_advanced', array( __CLASS__, 'add_features_settings' ), 10, 2 );