wpseek.com
WordPress开发者和主题制作者的搜索引擎



search_form_format › WordPress过滤钩子

Since5.5.0
已弃用n/a
apply_filters( 'search_form_format', $format, $args )
参数: (2)
  • (string) $format The type of markup to use in the search form. Accepts 'html5', 'xhtml'.
    Required: Yes
  • (array) $args The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
    Required: Yes
定义在:
文档:

Filters the HTML format of the search form.





源码

$format = apply_filters( 'search_form_format', $format, $args );