CHANGE THE NAME AND ADDRESS OF EMAILS SHIPPING
-
By default, WordPress requires a name and an address of sender when notifications sent to users. A simple code will allow to customize the information.
By default, WordPress uses the name “WordPress” and address “[email protected]” when it sends notifications to users. Admittedly, it is not very aesthetic!
This tip will explain the procedure for changing the name and address.
It is through two filters WordPress that we can edit. This is wp_mail_form and wp_mail_form_name. The first is used to change the shipping address and the second changes the name of the sender.
Open the functions.php file in your theme and paste the following code:
add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name'); function new_mail_from() { return '[email protected]'; } function new_mail_from_name() { return '[Nom de votre site]'; }
https://www.geekpress.fr/changer-nom-adresse-expedition-emails-wordpress/
- The topic ‘CHANGE THE NAME AND ADDRESS OF EMAILS SHIPPING’ is closed to new replies.