Create a gist now

Instantly share code, notes, and snippets.

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