attach_session_information

attach_session_information

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('attach_session_information') is found 1 times:

  • /wp-includes/class-wp-session-tokens.php line 134
    		 *
    		 * @param array $session Array of extra data.
    		 * @param int   $user_id User ID.
    		 */
    		$session               = apply_filters( 'attach_session_information', array(), $this->user_id );
    		$session['expiration'] = $expiration;
    
    		// IP address.
    		if ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) {
    			$session['ip'] = $_SERVER['REMOTE_ADDR'];
    		}