woocommerce_shipping_instance_form_fields_(id) хук-фильтрWC 2.6.0

Get settings fields for instances of this shipping method (within zones). Should be overridden by shipping methods to add options.

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

add_filter( 'woocommerce_shipping_instance_form_fields_(id)', 'wp_kama_woocommerce_shipping_instance_form_fields_id_filter' );

/**
 * Function for `woocommerce_shipping_instance_form_fields_(id)` filter-hook.
 * 
 * @param  $array_map 
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_instance_form_fields_id_filter( $array_map ){

	// filter...
	return $array_map;
}
$array_map
-

Список изменений

С версии 2.6.0 Введена.

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

WC_Shipping_Method::get_instance_form_fields()
woocommerce_shipping_instance_form_fields_(id)
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 507
return apply_filters( 'woocommerce_shipping_instance_form_fields_' . $this->id, array_map( array( $this, 'set_defaults' ), $this->instance_form_fields ) );

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

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