06/05/2015, 03:30
|
| | Fecha de Ingreso: junio-2010
Mensajes: 353
Antigüedad: 13 años, 10 meses Puntos: 6 | |
Respuesta: Sobre-escribir wp_new_user_notification() Ok, aquí está. Código PHP: <?php /** * Plugin Name: Custom New User Notifications * Description: Customize the "New User Registration" and "Your username and password" notifications * Version: 1.0 * Author: Tabutnas * Author URI: http://magictree.es */ if ( !function_exists('wp_new_user_notification') ) { function wp_new_user_notification($user_id, $plaintext_pass = ''){ $user = new WP_User($user_id); $user_login = stripslashes($user->user_login); $user_email = stripslashes($user->user_email); // The blogname option is escaped with esc_html on the way into the database in sanitize_option // we want to reverse this for the plain text arena of emails. $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $message = sprintf('Nuevo usuario registrado en Área Clientes:', $blogname) . "\r\n\r\n"; $message .= sprintf('Nombre del usuario: %s', $user_login) . "\r\n\r\n"; $message .= sprintf('Correo electrónico: %s', $user_email) . "\r\n"; $cabeceras = 'MIME-Version: 1.0' . "\r\n"; $cabeceras .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; // Cabeceras adicionales $cabeceras .= 'From: Àrea clients | Área clientes <[email protected]>' . "\r\n"; wp_mail($user_email, 'Accés Àrea Clients | Acceso Área Clientes @Sant Cugat Business Park', $message, $cabeceras ); } } ?> grache =d |