Logout in Translation
-
Hi there!
I tried your plugin and it works fine, at least on the site with my original language (i am using WPML).
I use your filter to redirect users after logout:
/** * Filter to redirect a user to a specific page after logout. * @return [URL] logout url with page slug on which it will be redirected after logout */ add_filter( 'login_logout_menu_logout', 'loginpress_login_menu_logout_redirect' ); function loginpress_login_menu_logout_redirect() { return wp_logout_url( '/logoutpage' ); }
This also works fine.
But on my second language it’s not working any more. There seems to be a conflict then with the snippet /?lang=en which WPML adds to translated sites. And so users are not forwarded to e.g. logoutpage/?lang=en, but to my homepage in the original language and users are also NOT logged out.
Is there maybe a workarround for that issue…?
Best regards
Andi
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Logout in Translation’ is closed to new replies.