By default, notification emails for new registrations will go to the site admin. You can filter the email address using this snippet:
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 | |
/** | |
* Filter email recipient for new registration notifications | |
*/ | |
function prefix_new_registration_email_recipient( $to ) { | |
$to .= ', you@email.com'; | |
return $to; | |
} | |
add_filter( 'wcmo_new_registration_email_recipient', 'prefix_new_registration_email_recipient' ); |
Note that you’ll need to separate additional email addresses with a comma.
Here’s how to add a snippet.
Disable new user registration email
If you’d like to disable the email that is sent when a new user registers, you can use this snippet:
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 | |
/** | |
* Disable new registration emails | |
*/ | |
add_filter( 'wcmo_disable_new_registration_email', '__return_true' ); |
Here’s how to add a snippet.