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 |
---|---|
680 | } else { |
681 | $auth_cookie_name = AUTH_COOKIE; |
682 | $scheme = 'auth'; |
683 | } |
684 |
|
685 | $auth_cookie = wp_generate_auth_cookie($user_id, $expiration, $scheme); |
686 | $logged_in_cookie = wp_generate_auth_cookie($user_id, $expiration, 'logged_in'); |
687 |
|
688 | do_action('set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme); |
689 | do_action('set_logged_in_cookie', $logged_in_cookie, $expire, $expiration, $user_id, 'logged_in'); |
690 |
|
691 | // Set httponly if the php version is >= 5.2.0 |
692 | if ( version_compare(phpversion(), '5.2.0', 'ge') ) { |
693 | setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true); |
694 | setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true); |
695 | setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true); |
696 | if ( COOKIEPATH != SITECOOKIEPATH ) |
697 | setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true); |
698 | } else { |