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 |
|---|---|
| 90 | * @param array $credentials { |
| 91 | * Array of entered sign-on data. |
| 92 | * |
| 93 | * @type string $user_login Username. |
| 94 | * @type string $user_password Password entered. |
| 95 | * @type bool $remember Whether to 'remember' the user. Increases the time |
| 96 | * that the cookie will be kept. Default false. |
| 97 | * } |
| 98 | */ |
| 99 | $secure_cookie = apply_filters( 'secure_signon_cookie', $secure_cookie, $credentials ); |
| 100 | |
| 101 | global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie(). |
| 102 | $auth_secure_cookie = $secure_cookie; |
| 103 | |
| 104 | add_filter( 'authenticate', 'wp_authenticate_cookie', 30, 3 ); |
| 105 | |
| 106 | $user = wp_authenticate( $credentials['user_login'], $credentials['user_password'] ); |
| 107 | |
| 108 | if ( is_wp_error( $user ) ) { |