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 |
---|---|
881 | * @param string $auth_cookie Authentication cookie. |
882 | * @param int $expire The time the login grace period expires as a UNIX timestamp. |
883 | * Default is 12 hours past the cookie's expiration time. |
884 | * @param int $expiration The time when the authentication cookie expires as a UNIX timestamp. |
885 | * Default is 14 days from now. |
886 | * @param int $user_id User ID. |
887 | * @param string $scheme Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'. |
888 | * @param string $token User's session token to use for this cookie. |
889 | */ |
890 | do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme, $token ); |
891 |
|
892 | /** |
893 | * Fires immediately before the logged-in authentication cookie is set. |
894 | * |
895 | * @since 2.6.0 |
896 | * @since 4.9.0 The `$token` parameter was added. |
897 | * |
898 | * @param string $logged_in_cookie The logged-in cookie. |
899 | * @param int $expire The time the login grace period expires as a UNIX timestamp. |