Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: set_auth_cookie

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
836       * @since 2.5.0
837       *
838       * @param string $auth_cookie Authentication cookie.
839       * @param int    $expire      Login grace period in seconds. Default 43,200 seconds, or 12 hours.
840       * @param int    $expiration  Duration in seconds the authentication cookie should be valid.
841       *                            Default 1,209,600 seconds, or 14 days.
842       * @param int    $user_id     User ID.
843       * @param string $scheme      Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'.
844       */
845      do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme );
846
847      /**
848       * Fires immediately before the secure authentication cookie is set.
849       *
850       * @since 2.6.0
851       *
852       * @param string $logged_in_cookie The logged-in cookie.
853       * @param int    $expire           Login grace period in seconds. Default 43,200 seconds, or 12 hours.
854       * @param int    $expiration       Duration in seconds the authentication cookie should be valid.