-
-
Save wsenjer/1a7b9eac9e8ab374015aff8560006694 to your computer and use it in GitHub Desktop.
Hide Express Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_package_rates','hide_express_post_shipping_option' ); | |
function hide_express_post_shipping_option( $rates ) { | |
$method = 'AUS_PARCEL_EXPRESS'; | |
if(isset($rates[$method])){ | |
unset($rates[$method]); | |
} | |
return $rates; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment