BACK TO DIRECTORY

One Search Result

by Brad Parbs

0.0
(0 ratings)

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.

Plugin Details

Active Installs
0
Total Downloads
3,391
Version
1.1.0
Requires WP
5.2
Requires PHP
5.6
Tested Up To
5.8.15
Added
2021-05-28
Last Updated
2021-08-20 5:06pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0