该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

One Search Result

描述

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.

评价

此插件暂无评价。

贡献者及开发者

「One Search Result」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.1.0

  • Added another filter, cleaned up code.

1.0.3

  • Initial release