Auto redirect after session expire, but only for one user
In functions.php add: <?php function ps_redirect_after_logout(){ // get the current user’s id $current_user_id = get_current_user_id(); // Get Paul $paul = get_user_by(‘login’, ‘Paul’); $paulsid = $paul->ID; // check if current user is Paul if($current_user_id == $paulsid) { wp_redirect(‘https://www.example.club/logout-page/’); exit(); } } add_action(‘wp_logout’,’ps_redirect_after_logout’); I haven’t tested this code, but something like this should be the way to … Read more