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 |
---|---|
13 | if ( !empty($credentials['user_login']) ) |
14 | $credentials['user_login'] = sanitize_user($credentials['user_login']); |
15 | if ( !empty($credentials['user_password']) ) |
16 | $credentials['user_password'] = trim($credentials['user_password']); |
17 | if ( !empty($credentials['remember']) ) |
18 | $credentials['remember'] = true; |
19 | else |
20 | $credentials['remember'] = false; |
21 |
|
22 | do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password'])); |
23 |
|
24 | if ( '' === $secure_cookie ) |
25 | $secure_cookie = is_ssl() ? true : false; |
26 | |
27 | // If no credential info provided, check cookie. |
28 | if ( empty($credentials['user_login']) && empty($credentials['user_password']) ) { |
29 | $user = wp_validate_auth_cookie(); |
30 | if ( $user ) |
31 | return new WP_User($user); |