logout redirect not working
-
Hello, I want to use the logout redirect such that I land on a specific page upon logout. Here is my code.
<?php
// This bit of code uses the custom rewrite rule in functions.php and returns the action
// the user is trying to execute (addweight, editweight, navigateweight etc.)
header(“Location: ” . wp_logout_url( ‘/wp/bodycomp’ ));exit;
?>What is happening is that after logout users are always being redirected to wp/wp-login.php?loggedout=true instead of where I want them to go.
Any help appreciated.
Thanks,
Frank
- The topic ‘logout redirect not working’ is closed to new replies.