site_search_columns

Advertisement

Summery Summery

Filters the columns to search in a WP_Site_Query search.

Syntax Syntax

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

Description Description

The default columns include ‘domain’ and ‘path.

Parameters Parameters

$search_columns

Array of column names to be searched.

$search

Text being searched.

$this

The current WP_Site_Query instance.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply