Last active
December 1, 2018 08:53
-
-
Save BFTrick/6429700 to your computer and use it in GitHub Desktop.
A filter to disable the default functionality where WooCommerce redirects a product search with only one result to the product page.
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 | |
add_filter( 'woocommerce_redirect_single_search_result', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't work.