WP_User_Meta_Session_Tokens::prepare_session( mixed $session ): array

In this article

Converts an expiration to an array of session information.

Parameters

$sessionmixedrequired
Session or expiration.

Return

array Session.

Source

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

	return $session;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.