Hi,
on which page does the user click the Logout link exactly?
Hi Greg,
Kindly login to see the logout link on the menu.
[redacted by moderator]
@pmmungai86 Please don’t offer to send or post logon credentials on these forums: https://ww.wp.xz.cn/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.
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 to an actual URL you would like to redirect users to.