Last active
September 3, 2019 02:40
-
-
Save donini/e0961c5f24e33aae01b16e089bed358e to your computer and use it in GitHub Desktop.
Change from name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Set a custom from name. | |
** | |
** @param string $name Custom name. | |
*/ | |
add_filter('wp_mail_from_name','custom_email_from_name'); | |
function custom_email_from_name($name) { | |
$name = 'My Site Name'; | |
return $name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment