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 |
|---|---|
| 64 | |
| 65 | $pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0; |
| 66 | if ( empty( $pagenum ) ) |
| 67 | $pagenum = 1; |
| 68 | |
| 69 | $per_page = (int) get_user_option( 'ms_users_per_page' ); |
| 70 | if ( empty( $per_page ) || $per_page < 1 ) |
| 71 | $per_page = 15; |
| 72 | |
| 73 | $per_page = apply_filters( 'ms_users_per_page', $per_page ); |
| 74 | |
| 75 | $s = isset( $_GET['s'] ) ? stripslashes( trim( $_GET[ 's' ] ) ) : ''; |
| 76 | $like_s = esc_sql( like_escape( $s ) ); |
| 77 | |
| 78 | $query = "SELECT * FROM {$wpdb->users}"; |
| 79 | |
| 80 | if ( !empty( $like_s ) ) { |
| 81 | $query .= " WHERE user_login LIKE '%$like_s%' OR user_email LIKE '%$like_s%'"; |
| 82 | } |