Function: wp_get_session_token

wp_get_session_token( )

Retrieve the current session token from the logged_in cookie.

Returns

string

Token.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.