• Hello,
    I’m using WPML and I need to translate the e-mails content in wp-admin/options-general.php?page=wpmem-settings&tab=emails
    The main language is english but I need other languages.

    I cannot find the contents in WPML’s String Translation module nor elsewhere.

    Can you give me some suggestions?

    Thank you

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

    (@cbutlerjr)

    Email content is saved in the wp_options table. There is an entry for each email.

    Probably the best/simplest approach would be to filter the email content when it is assembled and apply custom content based on the needed language.

    Every email that goes to users goes through the wpmem_email_content filter which can change just about every aspect of the message. What you’re primarily concerned with would be applying new/different values to the “subj” and “body” parameters (which are the email subject and the message body).

    See: https://rocketgeek.com/plugins/wp-members/docs/filter-hooks/wpmem_email_filter/

Viewing 1 replies (of 1 total)

The topic ‘How to translate e-mails?’ is closed to new replies.