woocommerce_after_product_attribute_settings
Hook to display custom attribute terms.
Usage
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 number $i Attribute index. * * @return void */ function wp_kama_woocommerce_after_product_attribute_settings_action( $attribute, $i ){ // action... }
- $attribute(WC_Product_Attribute)
- Attribute object.
- $i(number)
- Attribute index.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
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 );