WP_User_Meta_Session_Tokens::prepare_session

Advertisement

Summery Summery

Converts an expiration to an array of session information.

Syntax Syntax

WP_User_Meta_Session_Tokens::prepare_session( mixed $session )

Parameters Parameters

$session

(mixed) (Required) Session or expiration.

Return Return

(array) Session.

Source 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;
	}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.