How to hide other shipping method when usps shipping is available

By: Prem Tiwari | Last Updated: | In: WordPress Snippets


In today’s tutorial, I am going to share how to hide other shipping methods when USPS shipping is available for Alaska & Hawaii State in your WooCommerce store.

How to hide other shipping methods when USPS shipping is available

Copy the below code and add at the end of the themes/your-active-theme-folder/functions.php file. The below code will hide the other shipping method from cart/checkout page if USPS shipping method is available for Alaska and Hawaii USA states.

After adding the above code in your functions.php file, you will see the changes like below screenshot on the cart page.

How to hide other shipping method when usps shipping is available

Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

Share this post!


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


Tags: , , , , ,