Created
November 14, 2020 05:59
-
-
Save praveencs87/e9e4604a8586611ef7a876448c271599 to your computer and use it in GitHub Desktop.
Customize woocommerce No product found Message - webinwordpress.com
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 | |
//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