Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Created February 24, 2017 11:13
Show Gist options
  • Save rynaldos-zz/66bf8175948d79b7c7985d3f4ba7f808 to your computer and use it in GitHub Desktop.
Save rynaldos-zz/66bf8175948d79b7c7985d3f4ba7f808 to your computer and use it in GitHub Desktop.
[WooCommerce] Change the "no shipping methods available" message
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