user_search_columns

user_search_columns

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('user_search_columns') is found 1 times:

  • /wp-includes/class-wp-user-query.php line 741
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
         * @param string[]      $search_columns Array of column names to be searched.
         * @param string        $search         Text being searched.
         * @param WP_User_Query $query          The current WP_User_Query instance.
         */
        $search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this );
     
        $this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );
    }
     
    if ( ! empty( $include ) ) {
        // Sanitized earlier.

See this hook used in plugins: