Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: user_search_columns

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
490                          $search_columns = array('user_email');
491                     elseif ( is_numeric($search) )
492                          $search_columns = array('user_login', 'ID');
493                     elseif ( preg_match('|^https?://|', $search) && ! ( is_multisite() && wp_is_large_network( 'users' ) ) )
494                          $search_columns = array('user_url');
495                     else
496                          $search_columns = array('user_login', 'user_nicename');
497                }
498
499                $search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this );
500
501                $this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );
502           }
503
504           $blog_id = 0;
505           if ( isset( $qv['blog_id'] ) )
506                $blog_id = absint( $qv['blog_id'] );
507
508           if ( isset( $qv['who'] ) && 'authors' == $qv['who'] && $blog_id ) {