Destroy user sessions based on user ID
I want to programatically log a specific user out of our WordPress system based on their user ID much like the ‘Log Out of All Sessions’ button in the WordPress user editor section. How am I able to do this? 1 1 OK, simple solution after digging in the WordPress code. // get all sessions … Read more