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