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 |
---|---|
79 | * @param array $credentials { |
80 | * Array of entered sign-on data. |
81 | * |
82 | * @type string $user_login Username. |
83 | * @type string $user_password Password entered. |
84 | * @type bool $remember Whether to 'remember' the user. Increases the time |
85 | * that the cookie will be kept. Default false. |
86 | * } |
87 | */ |
88 | $secure_cookie = apply_filters( 'secure_signon_cookie', $secure_cookie, $credentials ); |
89 |
|
90 | global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie |
91 | $auth_secure_cookie = $secure_cookie; |
92 |
|
93 | add_filter( 'authenticate', 'wp_authenticate_cookie', 30, 3 ); |
94 |
|
95 | $user = wp_authenticate( $credentials['user_login'], $credentials['user_password'] ); |
96 |
|
97 | if ( is_wp_error( $user ) ) { |