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
$cookieParameter 1
$user_idParameter 2
$expirationParameter 3
$schemeParameter 4
$tokenParameter 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.