wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_get_all_sessions › WordPress Function

Da4.0.0
Deprecaton/a
wp_get_all_sessions ( Nessun parametro )
Ritorna:
  • (array) Array of sessions.
Definito a:
Codex:

Retrieves a list of sessions for the current user.



Sorgenti

function wp_get_all_sessions() {
	$manager = WP_Session_Tokens::get_instance( get_current_user_id() );
	return $manager->get_all();
}