Filter hook 'attach_session_information'

in WP Core File wp-includes/class-wp-session-tokens.php at line 134

Description

Filters the information attached to the newly created session. Can be used to attach further information to a session.

Occurrences

Filename Line Number
wp-includes/class-wp-session-tokens.php 134

Parameters

Type Name Description
array $session Array of extra data.
int $user_id User ID.

PHP Doc

/**
		 * Filters the information attached to the newly created session.
		 *
		 * Can be used to attach further information to a session.
		 *
		 * @since 4.0.0
		 *
		 * @param array $session Array of extra data.
		 * @param int   $user_id User ID.
		 */