woocommerce_attribute_deleted
After deleting an attribute.
Использование
add_action( 'woocommerce_attribute_deleted', 'wp_kama_woocommerce_attribute_deleted_action', 10, 3 ); /** * Function for `woocommerce_attribute_deleted` action-hook. * * @param int $id Attribute ID. * @param string $name Attribute name. * @param string $taxonomy Attribute taxonomy name. * * @return void */ function wp_kama_woocommerce_attribute_deleted_action( $id, $name, $taxonomy ){ // action... }
- $id(int)
- Attribute ID.
- $name(строка)
- Attribute name.
- $taxonomy(строка)
- Attribute taxonomy name.
Где вызывается хук
woocommerce_attribute_deleted
woocommerce/includes/wc-attribute-functions.php 711
do_action( 'woocommerce_attribute_deleted', $id, $name, $taxonomy );