• Resolved mardermolchii

    (@mardermolchii)


    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)
  • Plugin Support Muhammad Arslan

    (@wparslan)

    Hi @mardermolchii

    I have tried to recreate your issue in my local environment.
    Three languages were added and Login Logout Menu was set and the filtration of logout redirect was also in place.

    When I logged in from the default language the logout command was run across all three languages. The same was the case when I was in the Chinese language.

    Here is a Screencast of the scanrio.

    If you need any further assistance kindly contact our support forum.

    Thread Starter mardermolchii

    (@mardermolchii)

    Okay, thank you for having a look!

    Zainab Afaq

    (@wpzainab)

    Hi @mardermolchii,

    You are welcome. ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Logout in Translation’ is closed to new replies.