Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_authenticate

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
32                $credentials['remember'] = $_POST['rememberme'];
33      }
34
35      if ( !empty($credentials['remember']) )
36           $credentials['remember'] = true;
37      else
38           $credentials['remember'] = false;
39
40      // TODO do we deprecate the wp_authentication action?
41      do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password']));
42
43      if ( '' === $secure_cookie )
44           $secure_cookie = is_ssl();
45
46      $secure_cookie = apply_filters('secure_signon_cookie', $secure_cookie, $credentials);
47
48      global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie
49      $auth_secure_cookie = $secure_cookie;
50