Title: Logout problem
Last modified: June 14, 2022

---

# Logout problem

 *  Resolved [pmmungai86](https://wordpress.org/support/users/pmmungai86/)
 * (@pmmungai86)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/logout-problem-12/)
 * Hello Greg,
 * Kindly assist, I am using WPAdverts and once a subscriber logs out they are redirected
   to WordPress default login page whereas I am using plugins to redirect subscribers
   to the homepage. What would be the problem.
 * Here is a link I can see when a subscriber hovers over the logout button:
 * [https://konnect.co.ke/wp-login.php?action=logout&redirect_to=https%3A%2F%2Fgido.website%2Flog-in%2F&_wpnonce=b349bafce7](https://konnect.co.ke/wp-login.php?action=logout&redirect_to=https%3A%2F%2Fgido.website%2Flog-in%2F&_wpnonce=b349bafce7)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flogout-problem-12%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/logout-problem-12/#post-15734829)
 * Hi,
    on which page does the user click the Logout link exactly?
 *  Thread Starter [pmmungai86](https://wordpress.org/support/users/pmmungai86/)
 * (@pmmungai86)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/logout-problem-12/#post-15735204)
 * Hi Greg,
 * Kindly login to see the logout link on the menu.
 * [redacted by moderator]
    -  This reply was modified 3 years, 12 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [3 years, 12 months ago](https://wordpress.org/support/topic/logout-problem-12/#post-15736133)
 * [@pmmungai86](https://wordpress.org/support/users/pmmungai86/)  Please don’t 
   offer to send or post logon credentials on these forums: [https://wordpress.org/support/guidelines#the-bad-stuff](https://wordpress.org/support/guidelines#the-bad-stuff)
 * **It is not OK to offer, enter, or send site credentials on these forums**.
 * Per the dev’s request, post only the logout link.
 *  Thread Starter [pmmungai86](https://wordpress.org/support/users/pmmungai86/)
 * (@pmmungai86)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/logout-problem-12/#post-15736139)
 * Here is the link
 * [https://konnect.co.ke/wp-login.php?action=logout&redirect_to=https%3A%2F%2Fgido.website%2Flog-in%2F&_wpnonce=b349bafce7](https://konnect.co.ke/wp-login.php?action=logout&redirect_to=https%3A%2F%2Fgido.website%2Flog-in%2F&_wpnonce=b349bafce7)
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/logout-problem-12/#post-15738375)
 * Hi,
    sorry, but it is still not exactly clear where the users see this link? 
   Maybe you could post a screenshot that would show it?
 * The problem itself is the redirect_to param at the end of the link it forces 
   WP to redirect user to the `https://gido.website/log-in/` URL.
 * If you want to send users to a different page you can try forcing different URL
   by adding the code below in your theme functions.php file
 *     ```
       add_filter( 'logout_url', 'my_logout_page', 10, 2 );
       function my_logout_page( $logout_url, $redirect ) {
           return $logout_url . '?redirect_to=https://example.com' ;
       }
       ```
   
 * Just change the [https://example.com](https://example.com) to an actual URL you
   would like to redirect users to.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Logout problem’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/logout-problem-12/#post-15738375)
 * Status: resolved