Redirect Upon Logout
-
When using this theme, after user logs out (in front end BuddyPress) user still stays on their profile page, giving an impression that one is still logged in.
In order to Redirect to home page upon Logout, a following code should be added to functions.php//* Redirect WordPress to Homepage Upon Logout
add_action(‘wp_logout’,create_function(”,’wp_redirect(home_url());exit();’));
- The topic ‘Redirect Upon Logout’ is closed to new replies.