• Resolved Anonymous User 16052280

    (@anonymized-16052280)


    Hi Chad,

    Great plugin, thank you for your time and effort.

    For multilanguage purposes is it possible to send different emails for Registration is Moderated or Password Reset? If a user registers on a certain page it would receive an email with a certain subject, body corresponding to that registration page language. Maybe a conditional statement like if (is_page([10]) ) {...}

    Thank you,
    Andrei

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The plugin has an API function for adding additional custom emails to the Emails tab – wpmem_add_custom_email().

    There is a freely available code snippet on the support site’s code snippet library for applying additional emails for a multi-language site. As long as the language display is “standard” in that WP’s get_locale() function will return the current language locale, then this snippet is basically cut-and-paste (other than editing the helper function at the beginning to what language locales are being used).

    https://rocketgeek.com/code-snippets/filter-emails-for-multiple-languages/

    Note: there is a related snippet for filtering custom registration form field labels in a multi-language set up. Any custom fields you create obviously would not be included in the plugin’s localization file. In a single language setting this isn’t a big deal since you can create the custom field in the site’s language; but in a multi-language setting, you need to account for the fact that any custom fields will not be in the translation. This snippet allows you to set custom label values for each language locale being used:
    https://rocketgeek.com/code-snippets/filter-register-form-custom-fields-for-multiple-languages/

Viewing 1 replies (of 1 total)

The topic ‘Multilanguage Emails’ is closed to new replies.