diff --git a/includes/admin/class-wc-admin-status.php b/includes/admin/class-wc-admin-status.php
index a90b9ba686b..ac2c02fbdd1 100644
--- a/includes/admin/class-wc-admin-status.php
+++ b/includes/admin/class-wc-admin-status.php
@@ -128,6 +128,14 @@ class WC_Admin_Status {
WC_Install::create_pages();
echo '
' . __( 'All missing WooCommerce pages was installed successfully.', 'woocommerce' ) . '
';
break;
+ case "delete_taxes" :
+
+ $wpdb->query( "TRUNCATE " . $wpdb->prefix . "woocommerce_tax_rates" );
+
+ $wpdb->query( "TRUNCATE " . $wpdb->prefix . "woocommerce_tax_rate_locations" );
+
+ echo '' . __( 'Tax rates successfully deleted', 'woocommerce' ) . '
';
+ break;
default:
$action = esc_attr( $_GET['action'] );
if( isset( $tools[ $action ]['callback'] ) ) {
@@ -191,6 +199,11 @@ class WC_Admin_Status {
'button' => __( 'Install pages', 'woocommerce' ),
'desc' => __( 'Note This tool will install all the missing WooCommerce pages. Pages already defined and set up will not be replaced.', 'woocommerce' ),
),
+ 'delete_taxes' => array(
+ 'name' => __( 'Delete all WooCommerce tax rates', 'woocommerce' ),
+ 'button' => __( 'Delete ALL tax rates', 'woocommerce' ),
+ 'desc' => __( 'Note This option will delete ALL of your tax rates, use with caution.', 'woocommerce' ),
+ ),
) );
}