WHERE IS THE WORDPRESS EMAIL?

come notifications to me and to my users by wordpress, although my wordpress is in Italian such emails arrive in English. Where can I find these emails to edit them?

Email example:

Howdy xxx,

You recently requested to have the administration email address on
your site changed.

If this is correct, please click on the following link to change it:
https://xxxx.com/wp-admin/options.php?adminhash=xxxx

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to info@xxxx.com

Regards,
All at The Cornicione
https://xxx.com
  • Ash
    • WordPress Hacker

    Hello Edoardo

    Every email is sent for different purpose and it can be sent either from wordpress itself or by any plugin.

    As you are using site in another language, you need to use the language file. Here is a link of how you can use wordpress in your language: https://codex.wordpress.org/Installing_WordPress_in_Your_Language

    The above link for works with wordpress content only. If you have a plugin which sends email, to translate that you need to get the language file from that plugin author/team.

    The translated language file (po and mo file) should go to /wp-content/languages/ folder for wordpress and /wp-content/languages/plugins/ folder for plugins.

    To change that specific email you mentioned, you can use a hook too, like:

    add_filter( 'new_admin_email_content', function() {
      return 'Your new email content in Italian language goes here!';
    } );

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!

    Cheers,
    Ash

    • Edoardo
      • Flash Drive

      I have wordpress in Italian, I own the wordpress IT package, yet it sends these emails, it is not any plugin because they are emails coming directly from changes in wordpress settings, how to change the administrative email or change your email.

  • Ash
    • WordPress Hacker

    Hello Edoardo

    I didn't mention about UB because, it usually works with small words or strings. In email you have multiline content, so it may fail. But yeah, still I should have mention the Network Wide Text Change module in UB.

    why UB modded the email if all the addon email is off ?

    I am sorry, I didn't understand what you mean. Would you please explain a bit more?

    Have a nice day!

    Cheers,
    Ash

  • Nithin
    • Support Wizard

    Hi Edoardo,

    I have moved your ticket into support forums, so that we could help sort this issue better. I tested in my local server, and by importing the Ultimate Branding settings in your website, but I'm not able to replicate such an issue.

    The admin email change template is showing in IT language when tested in my system. By default the email template in your WordPress site should be sending emails in IT language, as that seems to be the default language configured.

    Does this happen with every subsites? or you notice this with any specific subsite? This looks more like a site specific issue, and more towards a conflict in your system.

    Since I don't see you mention about performing a plugin conflict test, could you please run a quick plugin/theme conflict test as illustrated in getting support flowchart:
    https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    The plugin conflict test would give you a better idea which exact action is switching the language to English in your system.

    If you are looking for a filter to customize the email content, you could use the following filter, and edit the text message according to your needs.

    <?php
    add_filter('new_admin_email_content', 'new_admin_email_text' );
    
    function new_admin_email_text() {
    $new_text =	"'Howdy ###USERNAME###,
    
    You recently requested to have the administration email address on
    your site changed.
    
    If this is correct, please click on the following link to change it:
    ###ADMIN_URL###
    
    You can safely ignore and delete this email if you do not want to
    take this action.
    
    This email has been sent to ###EMAIL###
    
    Regards,
    All at ###SITENAME###
    ###SITEURL###'";
    
    return $new_text;
    
    }

    You can add the above code as a mu-plugins. Please check the following article on how to make that work via mu-plugins:
    https://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.