Summery Summery
Converts an expiration to an array of session information.
Syntax Syntax
Parameters Parameters
- $session
-
(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; }