• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Hooks / set_auth_cookie – action

Fires immediately before the authentication cookie is set. 

Parameters

.
( 2.5.0 ) . .
The
( 4.9.0 ) `$token` parameter was added. . . .
$auth_cookie
( string ) Authentication cookie value. . . .
( int ) $expire The time the login grace period expires as a UNIX timestamp. Default is 12 hours past the cookie’s expiration time. . . .
( int ) $expiration The time when the authentication cookie expires as a UNIX timestamp. Default is 14 days from now. . . .
( int ) $user_id User ID. . . .
$scheme
( string ) Authentication scheme. Values include ‘auth’ or ‘secure_auth’. . . .
$token
( string ) User’s session token to use for this cookie. . . .
Hook name: set_auth_cookie
Hook type: action
Plugin ref: WordPress
Sourcefile:
File ref: wp_set_auth_cookie() – Sets the authentication cookies based on user ID.
Description: Fires immediately before the authentication cookie is set. 
Parameters:
Deprecated?: No
API Letters: A,C,S

Invokers

1 to 1 of 1
  • wp_set_auth_cookie() – Sets the authentication cookies based on user ID.

Implementers

    Published: 25th November 2019 | Last updated: 2nd April 2020

    Primary Sidebar

    Information

    Hook name: set_auth_cookie
    Hook type: action
    Plugin ref: WordPress
    Sourcefile:
    File ref: wp_set_auth_cookie() – Sets the authentication cookies based on user ID.
    Description: Fires immediately before the authentication cookie is set. 
    Parameters:
    Deprecated?: No
    API Letters: A,C,S

    Footer

    WP-a2z
    WordPress core a2z
    WordPress core only
    WordPress 5.6
    WordPress a2z
    WordPress core a2z
    Genesis Theme Framework a2z
    Jetpack a2z
    WordPress develop tests
    Easy Digital Downloads a2z
    WooCommerce a2z
    Yoast SEO a2z
    WordPress Blocks

    Site:  core.wp-a2z.org
    © Copyright WP-a2z 2014-2021. All rights reserved.


    Website designed and developed by Herb Miller
    Proudly powered by WordPress and oik plugins

    • Home
    • Blog
    • Sitemap
    • Sites