• Resolved fkho

    (@fkho)


    Hi,

    after following your instruction in another topic, I managed to set up your plugin.

    My situation gets a little complicated with multiple languages (Polylang).

    Main site and most of the subsites are in Slovak language (with english as secondary, just for future use).

    Subsite I need the registration is in english.

    When I register on the subsite, the form is in english, confirmation email is in english, but after clicking activation link, the next screen is in slovak. Any ideas how to force the activation language to subsite language?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Justin Fletcher

    (@justinticktock)

    Hi fkho,

    looking at this I see the same functionality as you describe the email activation link comes back to a url with the structure..
    main-domin-name/subsite/wp-activate.php?key=cccccccccc

    and the language is the same as the main site not the subsite, this is because the main site is where the activation occurs. And its the WordPress wp-activate.php code that handles the activation.

    The question would be how to change the locale on the main site for the user registering their activation from a subsite where the locale is different from the main site.

    there is a filter hook to override the site locale (ref https://codex.www.ads-software.com/Plugin_API/Filter_Reference/locale )
    so it may be possible I will have a look when I get time

    Plugin Author Justin Fletcher

    (@justinticktock)

    version 2.1 fixes this and adds Functionality for the registration confirmation page to be in the same language/locale as the sub-site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multi language subsite registration’ is closed to new replies.