Created
July 12, 2021 17:01
-
-
Save jorpdesigns/a7bf54b263fcadfdcbe64a8d24d8d901 to your computer and use it in GitHub Desktop.
Snippet to show custom message if no WooCommerce shipping rates are available
This file contains hidden or 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_filter( 'woocommerce_no_shipping_available_html', 'my_custom_no_shipping_message' ); | |
add_filter( 'woocommerce_cart_no_shipping_available_html', 'my_custom_no_shipping_message' ); | |
function my_custom_no_shipping_message( $message ) { | |
return 'Custom No Shipping Method Message'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment