Last active
August 29, 2015 14:07
-
-
Save AntonioRigo/d8efe63fb9e130b044b9 to your computer and use it in GitHub Desktop.
Cambia los datos de envío de emails en WordPress
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 | |
function new_mail_from($old) { | |
return 'wordpress@tu-dominio.tld'; // Cambiar "wordpress@tu-dominio.tld" por el dominio que quieras que figure. | |
} | |
function new_mail_from_name($old) { | |
return 'WordPress'; // Cambiar "WordPress" por el nombre que quieras que figure. | |
} | |
add_filter('wp_mail_from', 'new_mail_from'); | |
add_filter('wp_mail_from_name', 'new_mail_from_name'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment