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.8.1

do_action('woocommerce_attribute_deleted') is found 1 times:

  • /includes/wc-attribute-functions.php line 713
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
         * @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: