WOOCOMMERCE TUTORIALS
Remove Sales Tax for Specific Roles with WooCommerce
David Curtiss
Have you ever needed to remove sales tax for a specific user role in WooCommerce? A commom instance of this application would be for re-sale customers shopping at your store which in many states are not required to pay tax. I am going to show you how to remove sales tax/VAT for specific user roles.
First you are going to want to create a unique user role within WordPress. I do this with the User Role Editor plugin. This plugin is easy to use with many features to customize user roles.
Once you have the plugin installed you are going to navigate to Users –> User Role Editor in the WordPress admin sidebar. When the page loads click “Add Role”.
Make sure to take note of the Role Name (ID) field you enter. You will need this for the code later.

Next you are going to want to head over to Appearance —> Editor to make some modifications to your functions.php file. Some WordPress installations will have the editor disabled for security reasons. If this is the case it is easiest to modify the file via FTP. Make sure to be using a child theme so you won’t lose your updates when your theme is updated.

Paste the code below into your child theme functions.php file.

Make sure to replace ‘role-1’ with the Role Name (ID) you created earlier.

That's it! Make sure to check out our other tutorials for more WordPress tips & tricks.

Increasing Memory Allocated to WordPress

WEBDOC HOSTING | WORDPRESS Increasing Memory Allocated to Wordpress David Curtiss The WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as...

Want new articles before they get published?
Subscribe to our Awesome Newsletter.

WebDoc Hosting

WebDoc Security