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 |
---|---|
35 | if ( !empty($credentials['user_login']) ) |
36 | $credentials['user_login'] = sanitize_user($credentials['user_login']); |
37 | if ( !empty($credentials['user_password']) ) |
38 | $credentials['user_password'] = trim($credentials['user_password']); |
39 | if ( !empty($credentials['remember']) ) |
40 | $credentials['remember'] = true; |
41 | else |
42 | $credentials['remember'] = false; |
43 |
|
44 | do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password'])); |
45 |
|
46 | if ( '' === $secure_cookie ) |
47 | $secure_cookie = is_ssl() ? true : false; |
48 |
|
49 | // If no credential info provided, check cookie. |
50 | if ( empty($credentials['user_login']) && empty($credentials['user_password']) ) { |
51 | $user = wp_validate_auth_cookie(); |
52 | if ( $user ) |
53 | return new WP_User($user); |