I need to exploit the final login date from session_tokens in database.
Right here is the array of my final connection.
a:4:{s:10:"expiration";i:1663252695;s:2:"ip";s:39:"....";s:2:"ua";s:119:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Model/15.6.1 Safari/605.1.15";s:5:"login";i:1662043095;}}
I need to get this info: s:5:”login”;i:1662043095; -> the final one
Is it attainable to get it utilizing WP_Session_Tokens class ?
https://developer.wordpress.org/reference/courses/wp_session_tokens/
Does it exist a WP perform to entry to this worth apart from (securely):
choose user_id,meta_value from wp_usermeta the place meta_key='session_tokens' and user_id=1;