[WordPress] 外掛分享: WP Search Suggest

首頁外掛目錄 › WP Search Suggest
500+
安裝啟用
★★★★
4.6/5 分(11 則評價)
857 天前
最後更新
問題解決
WordPress 3.3+ v8 上架:2011-04-28

內容簡介

這個外掛可以讓您根據使用者在搜尋欄位輸入的資訊提供搜尋建議。

它在搜尋表單中添加了一個 AJAX 呼叫,從資料庫返回當前搜尋查詢的匹配項目。
不需要更改模板檔案,因為此外掛會連接現有的 WordPress API 以實現其功能。

翻譯

我會很樂意更新此外掛,以包含新的地區設定,只要我收到它們!
目前可用的語言有:

英文
德文
捷克文

篩選器參考

wpss_search_query_args(array|string)

查詢引數傳遞給WP_Query,可以是數組或字符串。
篩選器傳遞包含預設查詢引數和當前搜尋查詢的數組。

wpss_search_results(array)

結果字符串的數組作為值。過濾器傳遞包含默認結果和 WP_Query 對象的數組。

外掛標籤

開發者團隊

⬇ 下載最新版 (v8) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Search Suggest」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin lets you provide the user with search suggestions based on the information entered in the search field.
It adds an AJAX call to the search form, returning matches for the current search query from the database.
There is no change of template files necessary as this plugin hooks in the existing WordPress API to unfold its magic.
Translations
I will be more than happy to update the plugin with new locales, as soon as I receive them!
Currently available in:

English
Deutsch
Czech

Filter Reference
wpss_search_query_args (array|string)

The query args, passed to WP_Query, either as an array or a string.
An array with the default query args and the current search query are passed to the filter.

wpss_search_results (array)

An array with the result strings as values. An array with the default results and the WP_Query object are passed to the filter.

延伸相關外掛

文章
Filter
Mastodon