WP_User_Meta_Session_Tokens::prepare_session( mixed $session ): array

Converts an expiration to an array of session information.


Parameters

$session mixed Required
Session or expiration.

Top ↑

Return

array Session.


Top ↑

Source

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

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

	return $session;
}

Top ↑

User Contributed Notes

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