Tulip Media

Entrepreneurial thoughts

Change WordPress Default Sender

Little quick tip for users of the CMS WordPress, tired of seeing the function wp_mail send automatic messages to their users under the email " “. To overcome this problem, there are unfortunately no settings in the backend of WordPress. So, here is a little filter seen on Butterblog.com, the author of the WP-Members plugin, which allows you to customize not only the default WordPress sending email address, but also the sender name.

We will filter wp_mail_from And wp_mail_from_name, by editing the file functions.php.

functions.php:

add_filter( 'wp_mail_from', 'my_mail_from' );
function my_mail_from($email)
{ return ''; }
add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
function my_mail_from_name($name)
{ return 'My Name'; }

 

My latest tweets

New shorts on Blooness 👉 Relaunch libido, in bulk -> Sun, vitamin D, keto-Mediterranean diet, proteins, books, banter, walking, HIIT, and no hypocalorie diet.
https://buff.ly/445PWvc

New shorts on Blooness 👉 Improve your sleep -> expose yourself to light in the morning, limit sunglasses, wet your shirt during sports, drink decaf, eat maximum 3 hours before sleeping, take a digestive walk and take some melaton
https://buff.ly/440weAJ

Load more

Don't miss business advice by email

No spam, just an email when new content is published.

One Response

  1. Good morning,

    which functions.php file should you modify exactly because there are several?

    Thanks in advance

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEN