post_search_columns

post_search_columns

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('post_search_columns') is found 1 times:

  • /wp-includes/class-wp-query.php line 1444
    		 * @param string[] $search_columns Array of column names to be searched.
    		 * @param string   $search         Text being searched.
    		 * @param WP_Query $query          The current WP_Query instance.
    		 */
    		$search_columns = (array) apply_filters( 'post_search_columns', $search_columns, $q['s'], $this );
    
    		// Use only supported search columns.
    		$search_columns = array_intersect( $search_columns, $default_search_columns );
    		if ( empty( $search_columns ) ) {
    			$search_columns = $default_search_columns;
    		}