apply_filters( 'attach_session_information', array $session , int $user_id )
Filters the information attached to the newly created session.
Description
Can be used to attach further information to a session.
Parameters
-
$session
array -
Array of extra data.
-
$user_id
int -
User ID.
Source
File: wp-includes/class-wp-session-tokens.php
.
View all references
$session = apply_filters( 'attach_session_information', array(), $this->user_id );
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |