WP_User_Meta_Session_Tokens::prepare_session( mixed $session )

Converts an expiration to an array of session information.


Parameters

$session

(Required) Session or expiration.


Return

(array) Session.


Source

File: wp-includes/class-wp-user-meta-session-tokens.php

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

		return $session;
	}