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 |
---|---|
1058 | * @param string $logged_in_cookie The logged-in cookie value. |
1059 | * @param int $expire The time the login grace period expires as a UNIX timestamp. |
1060 | * Default is 12 hours past the cookie's expiration time. |
1061 | * @param int $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp. |
1062 | * Default is 14 days from now. |
1063 | * @param int $user_id User ID. |
1064 | * @param string $scheme Authentication scheme. Default 'logged_in'. |
1065 | * @param string $token User's session token to use for this cookie. |
1066 | */ |
1067 | do_action( 'set_logged_in_cookie', $logged_in_cookie, $expire, $expiration, $user_id, 'logged_in', $token ); |
1068 |
|
1069 | /** |
1070 | * Allows preventing auth cookies from actually being sent to the client. |
1071 | * |
1072 | * @since 4.7.4 |
1073 | * @since 6.2.0 The `$expire`, `$expiration`, `$user_id`, `$scheme`, and `$token` parameters were added. |
1074 | * |
1075 | * @param bool $send Whether to send auth cookies to the client. Default true. |
1076 | * @param int $expire The time the login grace period expires as a UNIX timestamp. |