Converts an expiration to an array of session information.
(mixed) (Required) Session or expiration.
(array) Session.
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; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user_meta_session_tokens/prepare_session