woocommerce_settings_(id) хук-событиеWC 1.0

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

add_action( 'woocommerce_settings_(id)', 'wp_kama_woocommerce_settings_id_action' );

/**
 * Function for `woocommerce_settings_(id)` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_settings_id_action(){

	// action...
}

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

WC_Admin_Settings::output_fields()
woocommerce_settings_(id)
woocommerce/includes/admin/class-wc-admin-settings.php 280
do_action( 'woocommerce_settings_' . sanitize_title( $value['id'] ) );

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

woocommerce/includes/admin/class-wc-admin-api-keys.php 21
add_action( 'woocommerce_settings_page_init', array( $this, 'screen_option' ) );
woocommerce/includes/admin/class-wc-admin-webhooks.php 21
add_action( 'woocommerce_settings_page_init', array( $this, 'screen_option' ) );
woocommerce/includes/admin/settings/class-wc-settings-page.php 38
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
woocommerce/includes/admin/settings/class-wc-settings-page.php 41
add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) );
woocommerce/includes/admin/settings/class-wc-settings-tax.php 29
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
woocommerce/includes/admin/settings/class-wc-settings-tax.php 34
add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) );
woocommerce/includes/class-wc-register-wp-admin-settings.php 40
add_filter( 'woocommerce_settings_groups', array( $this, 'register_page_group' ) );
woocommerce/includes/class-wc-register-wp-admin-settings.php 43
add_filter( 'woocommerce_settings_groups', array( $this, 'register_email_group' ) );
woocommerce/includes/tracks/events/class-wc-settings-tracking.php 33
add_action( 'woocommerce_settings_page_init', array( $this, 'track_settings_page_view' ) );
woocommerce/src/Admin/Features/MultichannelMarketing/Init.php 34
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );
woocommerce/src/Admin/Features/MultichannelMarketing/Init.php 36
add_action( 'woocommerce_settings_saved', array( $this, 'maybe_reload_page' ) );
woocommerce/src/Admin/Features/Navigation/Init.php 38
add_action( 'woocommerce_settings_saved', array( $this, 'maybe_reload_page' ) );
woocommerce/src/Internal/Admin/Analytics.php 53
add_action( 'woocommerce_settings_saved', array( $this, 'maybe_reload_page' ) );
woocommerce/src/Internal/Admin/Settings.php 44
add_filter( 'woocommerce_settings_groups', array( $this, 'add_settings_group' ) );
woocommerce/src/Internal/Admin/SettingsNavigationFeature.php 44
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );
woocommerce/src/Internal/ProductDownloads/ApprovedDirectories/Admin/UI.php 51
add_action( 'woocommerce_settings_products', array( $this, 'render' ) );