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:
定义位置
  • wp-includes/general-template.php
    , line 351
引入
5.5.0
弃用

过滤搜索表格的HTML输出。

$result = apply_filters( 'get_search_form', $form, $args );