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_columnsstring[]
Array of column names to be searched.
$searchstring
Text being searched.
$queryWP_Site_Query
The current WP_Site_Query instance.

Source

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

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.