WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
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 ) { |