Skip to content

Instantly share code, notes, and snippets.

@praveencs87
Created November 14, 2020 05:59
Show Gist options
  • Save praveencs87/e9e4604a8586611ef7a876448c271599 to your computer and use it in GitHub Desktop.
Save praveencs87/e9e4604a8586611ef7a876448c271599 to your computer and use it in GitHub Desktop.
Customize woocommerce No product found Message - webinwordpress.com
<?php
//paste below code in function.php
add_action( 'woocommerce_no_products_found', function(){
remove_action( 'woocommerce_no_products_found', 'wc_no_products_found', 10 );
// HERE change your message below
$message = __( 'No products were found matching your selection.', 'woocommerce' );
echo '<p class="woocommerce-info">' . $message .'</p>';
}, 9 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment