On this page
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
$sessionarray-
Array of extra data.
$user_idint-
User ID.
Source
File: wp-includes/class-wp-session-tokens.php. View all references
$session = apply_filters( 'attach_session_information', array(), $this->user_id );
Related
Used By
| Used By | Description |
|---|---|
| WP_Session_Tokens::create() wp-includes/class-wp-session-tokens.php | Generates a session token and attaches session information to it. |
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/attach_session_information