[wp-hackers] don't send email after install
Kurt Payne
kpayne+wordpress+hackers at gmail.com
Thu Feb 21 05:11:55 UTC 2013
Victor,
Try creating an mu-plugin with this code:
// Don't send out the "your new WordPress site" e-mail
add_filter( 'wp_mail', 'cancel_new_site_email' );
/**
* Don't send the welcome e-mail
* @param type $args
* @return array
*/
function cancel_new_site_email( $args ) {
if ( __( 'New WordPress Site' ) === $args['subject'] ) {
$args = array(
'to' => '',
'subject' => '',
'message' => '',
'headers' => '',
'attachments' => array()
);
}
return $args;
}
That should prevent the new install e-mail from going out.
--Kurt
On Wed, Feb 20, 2013 at 9:55 PM, Victor Granic <vmg at boreal321.com> wrote:
> Howdy folks,
>
> Is there a way to tell WordPress not to send an email to the admin user after an installation? I do a lot of installs for customers and I would prefer to only send them a message from me with the credentials and some other info. The email sent during the installation procedure is preempting my message and sometimes causes confusion.
>
> Thanks,
>
> Victor
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list