get_search_form

過濾鉤子
apply_filters( 'get_search_form', $form, $args )
引數
  • (string) $form The search form HTML output.
    Required:
  • (array) $args The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
    Required:
定義位置
相關勾子
pre_get_search_formget_search_querysearch_form_argsdelete_user_formsearch_form_format
相關方法
get_search_formget_search_queryinstall_search_formget_search_linkget_search_templateget_search_feed_link
引入
5.5.0
棄用
-

get_search_form是一個WordPress函式,用來檢索網站搜尋結果頁面上使用的搜尋表單: 該函式返回搜尋表單的HTML表示。

過濾搜尋表格的HTML輸出。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$result = apply_filters( 'get_search_form', $form, $args );
$result = apply_filters( 'get_search_form', $form, $args );
$result = apply_filters( 'get_search_form', $form, $args );

常見問題

FAQs
檢視更多 >