Viewing 5 replies - 1 through 5 (of 5 total)
  • I have already implemented your code. Please check latest version and let me know.

    Thread Starter anou

    (@anou)

    Thank you very much!

    Just one mistake: you forgot to use $check_lg in the if() line 183:
    if($check_lg && !isset($_COOKIE['viewedExitPopupWP']) &&...

    How is this check required? Can you please provide more details

    Thread Starter anou

    (@anou)

    1. line 172: the $check_lg is true by default, so it won’t bother any installation that do not have WPML installed
    2. then line 173, I check if WPML exist, and if so, $check_lg becomes false so this way if you haven’t check any language(s) in the Exit Popup Settings page, the popup won’t display anywhere.
    3. if you check one or more language(s), the Exit Popup will show up on the given selected language(s)

    Finally if you do not do this check, it is like the code added is useless ??

    Hope I have been enough clear in my explanation ??

    Thread Starter anou

    (@anou)

    The use case is that I have a site with 8 languages and I only wanted the popup to show up on one language.

    What we could do now is to add the possibility to translate the popup so we can display it on multiple languages in the right language… But that’s another story.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Make plugin WPML aware’ is closed to new replies.