woocommerce_attribute_deleted

woocommerce_attribute_deleted

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.4.2

do_action('woocommerce_attribute_deleted') is found 1 times:

  • /includes/wc-attribute-functions.php line 711
    		 * @param int    $id       Attribute ID.
    		 * @param string $name     Attribute name.
    		 * @param string $taxonomy Attribute taxonomy name.
    		 */
    		do_action( 'woocommerce_attribute_deleted', $id, $name, $taxonomy );
    		wp_schedule_single_event( time(), 'woocommerce_flush_rewrite_rules' );
    		delete_transient( 'wc_attribute_taxonomies' );
    		WC_Cache_Helper::invalidate_cache_group( 'woocommerce-attributes' );
    
    		return true;
    	}
    

See this hook used in plugins: