WordPress at a glance
function is not described

WP_User_Meta_Session_Tokens::prepare_session() WP 1.0

Converts an expiration to an array of session information.

This is a method of the class: WP_User_Meta_Session_Tokens

No Hooks.

Return

Array. Session.

Usage

$WP_User_Meta_Session_Tokens = new WP_User_Meta_Session_Tokens();
$var = $WP_User_Meta_Session_Tokens->prepare_session( $session );
$session(mixed) (required)
Session or expiration.

Code of WP User Meta Session Tokens::prepare session: wp-includes/class-wp-user-meta-session-tokens.php WP 5.2.2

<?php
protected function prepare_session( $session ) {
	if ( is_int( $session ) ) {
		return array( 'expiration' => $session );
	}

	return $session;
}