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