How to log out everywhere else, destroy all sessions “all other devices”?
That button sends an AJAX request that runs wp_ajax_destroy_sessions(). It’s not really abstracted in such a way that you can re-use it outside of AJAX, but if you copy the source into your own function, minus the JSON parts, then you could perform the same action yourself. The key part is this bit, which will … Read more