Hey there, I've never PHPd before and want to see if I'm doing this right.
My Wordpress site is giving the Wordpress "from" name on emails when users are notified of a password change, and I wanna change it to the company name.
On another forum this was the up-dooted solution for the problem
--------
add_filter( ‘wp_mail_from_name’, ‘new_mail_from_name’ );
function new_mail_from_name( $old ) {
return get_option( ‘blogname’ );
}
---------
And I wanna see if the below looks right to you as what I'd put in the functions file
---------
add_filter( ‘WordPress’, ‘alphaequipment’ );
function new_mail_from_name( $old ) {
return get_option( ‘alphaequipment.com’ );
}
-----------
I realize I can break the site, and I understand you give no guarantee that this will work. I also know it's an eye-roll ask. I promise I will study up on this when I can but I'm already super late 😫
Thank you so much 🙏🙏🙏🙏🙏