
One Search Result
by Brad Parbs on WordPress.org
When there is only one search result available for a query, automatically redirect the user to that result.
This will work with any theme and any posts, pages, or custom post types that would be shown in search results.
Available Filters
You can filter one_search_result_pre_check
to false if you need to short-circuit and disable the redirect dynamically.
You can modify the redirect code with once_search_result_redirect_code
, defaults to 302.
Active installations0+
Weekly downloads
12+0.00%
Version1.1.0
Last updated8/20/2021
WordPress version5.2
Tested up to5.8.10
PHP version5.6
Tags
contentredirectsresultssearch