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 |
---|---|
902 | * @since 2.6.0 |
903 | * |
904 | * @param string $logged_in_cookie The logged-in cookie. |
905 | * @param int $expire Login grace period in seconds. Default 43,200 seconds, or 12 hours. |
906 | * @param int $expiration Duration in seconds the authentication cookie should be valid. |
907 | * Default 1,209,600 seconds, or 14 days. |
908 | * @param int $user_id User ID. |
909 | * @param string $scheme Authentication scheme. Default 'logged_in'. |
910 | */ |
911 | do_action( 'set_logged_in_cookie', $logged_in_cookie, $expire, $expiration, $user_id, 'logged_in' ); |
912 |
|
913 | setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true); |
914 | setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true); |
915 | setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true); |
916 | if ( COOKIEPATH != SITECOOKIEPATH ) |
917 | setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true); |
918 | } |
919 | endif; |
920 |
|