woocommerce_after_product_attribute_settings
Hook to display custom attribute terms.
Использование
add_action( 'woocommerce_after_product_attribute_settings', 'wp_kama_woocommerce_after_product_attribute_settings_action', 10, 2 );
/**
* Function for `woocommerce_after_product_attribute_settings` action-hook.
*
* @param WC_Product_Attribute $attribute Attribute object.
* @param int $i Attribute index.
*
* @return void
*/
function wp_kama_woocommerce_after_product_attribute_settings_action( $attribute, $i ){
// action...
}
- $attribute(WC_Product_Attribute)
- Attribute object.
- $i(int)
- Attribute index.
Список изменений
| С версии 3.4.0 | Введена. |
Где вызывается хук
woocommerce_after_product_attribute_settings
woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php 115
do_action( 'woocommerce_after_product_attribute_settings', $attribute, $i );