Home/Hooks/auth_cookie
FILTER

auth_cookie

Filters the authentication cookie.

wp-includes/pluggable.php
Line 905
5 Parameters
View Source

Usage

add_filter( 'auth_cookie', 'your_callback_function', 10, 5 );

Filter Callback:

function your_callback_function( $cookie, $user_id, $expiration, $scheme, $token ) {
    // Your code here
    return $cookie;
}

Parameters

$cookie

Parameter 1

$user_id

Parameter 2

$expiration

Parameter 3

$scheme

Parameter 4

$token

Parameter 5

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.