Merge pull request #29938 from geektzu/fix/29708

Fix for deleted Reduce or Zero rate tax classes
This commit is contained in:
Roy Ho 2021-05-28 07:11:33 -07:00 committed by GitHub
commit 84f8fcd016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -619,10 +619,12 @@ class WC_Install {
add_option( 'woocommerce_checkout_highlight_required_fields', 'yes', '', 'yes' );
add_option( 'woocommerce_demo_store', 'no', '', 'no' );
if ( self::is_new_install() ) {
// Define initial tax classes.
WC_Tax::create_tax_class( __( 'Reduced rate', 'woocommerce' ) );
WC_Tax::create_tax_class( __( 'Zero rate', 'woocommerce' ) );
}
}
/**
* Add the default terms for WC taxonomies - product types and order statuses. Modify this at your own risk.