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 |
---|---|
893 | * @since 2.5.0 |
894 | * |
895 | * @param string $auth_cookie Authentication cookie. |
896 | * @param int $expire Login grace period in seconds. Default 43,200 seconds, or 12 hours. |
897 | * @param int $expiration Duration in seconds the authentication cookie should be valid. |
898 | * Default 1,209,600 seconds, or 14 days. |
899 | * @param int $user_id User ID. |
900 | * @param string $scheme Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'. |
901 | */ |
902 | do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme ); |
903 |
|
904 | /** |
905 | * Fires immediately before the secure authentication cookie is set. |
906 | * |
907 | * @since 2.6.0 |
908 | * |
909 | * @param string $logged_in_cookie The logged-in cookie. |
910 | * @param int $expire Login grace period in seconds. Default 43,200 seconds, or 12 hours. |
911 | * @param int $expiration Duration in seconds the authentication cookie should be valid. |