woocommerce_admin_field_(type) хук-событиеWC 1.0

Default: run an action.

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

add_action( 'woocommerce_admin_field_(type)', 'wp_kama_woocommerce_admin_field_type_action' );

/**
 * Function for `woocommerce_admin_field_(type)` action-hook.
 * 
 * @param  $value 
 *
 * @return void
 */
function wp_kama_woocommerce_admin_field_type_action( $value ){

	// action...
}
$value
-

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

WC_Admin_Settings::output_fields()
woocommerce_admin_field_(type)
woocommerce/includes/admin/class-wc-admin-settings.php 737
do_action( 'woocommerce_admin_field_' . $value['type'], $value );

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

woocommerce/includes/admin/settings/class-wc-settings-emails.php 27
add_action( 'woocommerce_admin_field_email_notification', array( $this, 'email_notification_setting' ) );
woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php 30
add_action( 'woocommerce_admin_field_payment_gateways_banner', array( $this, 'payment_gateways_banner' ) );
woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php 31
add_action( 'woocommerce_admin_field_payment_gateways', array( $this, 'payment_gateways_setting' ) );