apply_filters( 'site_search_columns', string[] $search_columns, string $search, WP_Site_Query $query )

Filters the columns to search in a WP_Site_Query search.

Description

The default columns include ‘domain’ and ‘path.

Parameters

$search_columns

(string[]) Array of column names to be searched.

$search

(string) Text being searched.

$query

(WP_Site_Query) The current WP_Site_Query instance.

Source

File: wp-includes/class-wp-site-query.php

View on Trac

Changelog

Version Description
4.6.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_search_columns