Logout redirect doesn’t work
-
Hi there,
I’m using the latest version of both the plugin and WordPress. The logout redirect setting doesn’t work as I expected it to – it ONLY applies to using a logout link in the widget.
I have a logout link in the header of my theme. It’s coded using
echo wp_logout_url();
, but it doesn’t obey the redirect setting in your plugin.Can I propose that you add in
settings.php
to theload_settings()
method something like:add_filter('logout_redirect', function ( $redirect_to, $requested_redirect_to, $user ) { $logout_redirect_page = get_option('logout_redirect_page'); return $logout_redirect_page ? get_permalink($logout_redirect_page) : $redirect_to; }, 10, 3);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Logout redirect doesn’t work’ is closed to new replies.