woocommerce_attribute_deleted
After deleting an attribute.
Usage
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(string)
- Attribute name.
- $taxonomy(string)
- Attribute taxonomy name.
Where the hook is called
woocommerce_attribute_deleted
woocommerce/includes/wc-attribute-functions.php 711
do_action( 'woocommerce_attribute_deleted', $id, $name, $taxonomy );