Skip to content

Instantly share code, notes, and snippets.

@Archie22is
Created April 23, 2018 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Archie22is/246edf91038c1f86310ff4d22c8983e3 to your computer and use it in GitHub Desktop.
Save Archie22is/246edf91038c1f86310ff4d22c8983e3 to your computer and use it in GitHub Desktop.
[WooCommerce] Change the "no shipping methods available" message
<?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 __( 'your_custom_message_goes_here' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment