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



site_search_columns ›

Since4.6.0
已弃用n/a
apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this )
参数: (3)
  • (string[]) $search_columns Array of column names to be searched.
    Required: Yes
  • (string) $search Text being searched.
    Required: Yes
  • (WP_Site_Query) $this The current WP_Site_Query instance.
    Required: Yes
定义在:
文档:

Filters the columns to search in a WP_Site_Query search.

The default columns include 'domain' and 'path.





源码

$search_columns = apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this );