site_search_columns

site_search_columns

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('site_search_columns') is found 1 times:

  • /wp-includes/class-wp-site-query.php line 627
    			 * @param string[]      $search_columns Array of column names to be searched.
    			 * @param string        $search         Text being searched.
    			 * @param WP_Site_Query $query          The current WP_Site_Query instance.
    			 */
    			$search_columns = apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this );
    
    			$this->sql_clauses['where']['search'] = $this->get_search_sql( $this->query_vars['search'], $search_columns );
    		}
    
    		$date_query = $this->query_vars['date_query'];
    		if ( ! empty( $date_query ) && is_array( $date_query ) ) {