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 |
---|---|
471 | $search_columns = array('user_email'); |
472 | elseif ( is_numeric($search) ) |
473 | $search_columns = array('user_login', 'ID'); |
474 | elseif ( preg_match('|^https?://|', $search) && ! ( is_multisite() && wp_is_large_network( 'users' ) ) ) |
475 | $search_columns = array('user_url'); |
476 | else |
477 | $search_columns = array('user_login', 'user_nicename'); |
478 | } |
479 |
|
480 | $search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this ); |
481 |
|
482 | $this->query_where .= $this->get_search_sql( $search, $search_columns, $wild ); |
483 | } |
484 |
|
485 | $blog_id = absint( $qv['blog_id'] ); |
486 |
|
487 | if ( 'authors' == $qv['who'] && $blog_id ) { |
488 | $qv['meta_key'] = $wpdb->get_blog_prefix( $blog_id ) . 'user_level'; |
489 | $qv['meta_value'] = 0; |