woocommerce_tax_rate_deleted

woocommerce_tax_rate_deleted

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_tax_rate_deleted') is found 1 times:

  • /includes/class-wc-tax.php line 1129
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
        $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}woocommerce_tax_rates WHERE tax_rate_id = %d;", $tax_rate_id ) );
     
        WC_Cache_Helper::invalidate_cache_group( 'taxes' );
     
        do_action( 'woocommerce_tax_rate_deleted', $tax_rate_id );
    }
     
    /**
     * Update postcodes for a tax rate in the DB.
     *
     * Internal use only.

See this hook used in plugins: