External Authentication, session_tokens not destroyed on logout
Here is the final code to get sessions to write to the usermeta and delete on logout. This code works with WordPress 4.5.2. The code is for user_id information only. add_action( ‘after_setup_theme’, ‘new_login’ ); function new_login() { $user_id = ”; // Change your code to grab user_id from external source if ( $user_id > 0 … Read more