woocommerce_attribute_deleted action-hook . WC 1.0
After deleting an attribute.
Usage
add_action( 'woocommerce_attribute_deleted', 'action_function_name_5053', 10, 3 ); function action_function_name_5053( $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_attribute_deleted
woocommerce/includes/wc-attribute-functions.php 701
do_action( 'woocommerce_attribute_deleted', $id, $name, $taxonomy );
woocommerce/includes/legacy/api/v2/class-wc-api-products.php 2169
do_action( 'woocommerce_attribute_deleted', $id, $attribute_name, $taxonomy );
woocommerce/includes/legacy/api/v3/class-wc-api-products.php 2724
do_action( 'woocommerce_attribute_deleted', $id, $attribute_name, $taxonomy );