WordPress at a glance
filter is not described

attach_session_information filter-hook . WP 4.0.0

Filters the information attached to the newly created session.

Could be used in the future to attach information such as IP address or user agent to a session.


add_filter( 'attach_session_information', 'filter_function_name_8522', 10, 2 );
function filter_function_name_8522( $session, $user_id ){
	// filter...

	return $session;
Array of extra data.
User ID.

Where the hook is called

wp-includes/class-wp-session-tokens.php 134
$session = apply_filters( 'attach_session_information', array(), $this->user_id );

Where the hook is used (in WP core)

Does not used.