Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Cambia los datos de envío de emails en WordPress
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