Skip to content

Posted in: General Snippets | View All

Important: Snippet Placement

Hide other shipping methods when “Free Shipping” is available

Adding code

Before adding snippets, clear your WooCommerce cache. Go to WooCommerce > System Status > Tools > WC Transients > Clear transients.


Snippets for WC 3.0+

Hides everything but free_shipping if it’s available and is compatible with Shipping Zones. This code snippet is what’s used in this plugin https://wordpress.org/plugins/wc-hide-shipping-methods/.


How do I show only Local Pickup and Free Shipping?

This can be done by using this free plugin https://wordpress.org/plugins/wc-hide-shipping-methods/ or with the following code snippet

Audit History

Passed | February 3, 2023 | By jcullen

Scroll To Top