5.5 C
New York
Sunday, January 28, 2024

How To Change Default WordPress Sender Name and Email Address

Share To Your Friends

Do you want to know how to change default WordPress sender name and email address? If your answer is yes, then this blog post would be resourceful.

Enter the code below in the functions.php file of your theme

//Code to change your email address:

add_filter( 'wp_mail_from', 'sender_email' );
function sender_email( $original_email_address ) {
return 'your_email_name@example.com';
}

//Code to change your sender name:

add_filter( 'wp_mail_from_name', 'sender_name' );
function sender_name( $original_email_from ) {
return 'Your Name';
}

Watch this video for How to do it..


Share To Your Friends

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles