This plugin is outdated and might not be supported anymore
One Search Result

One Search Result

Details
View on WordPress

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.

Details

Plugin code:
one-search-result
Plugin version:
1.1.0
Author:
Outdated:
Yes
WP version:
5.2 or higher
PHP version:
5.6 or higher
Test up to WP version:
5.8.10
Total installations:
0
Last updated:
2021-08-20
Rating:
Times rated:
0
content
redirects
results
search