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 |
|---|---|
| 65 | * @param array $credentials { |
| 66 | * Array of entered sign-on data. |
| 67 | * |
| 68 | * @type string $user_login Username. |
| 69 | * @type string $user_password Password entered. |
| 70 | * @type bool $remember Whether to 'remember' the user. Increases the time |
| 71 | * that the cookie will be kept. Default false. |
| 72 | * } |
| 73 | */ |
| 74 | $secure_cookie = apply_filters( 'secure_signon_cookie', $secure_cookie, $credentials ); |
| 75 | |
| 76 | global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie |
| 77 | $auth_secure_cookie = $secure_cookie; |
| 78 | |
| 79 | add_filter('authenticate', 'wp_authenticate_cookie', 30, 3); |
| 80 | |
| 81 | $user = wp_authenticate($credentials['user_login'], $credentials['user_password']); |
| 82 | |
| 83 | if ( is_wp_error($user) ) { |