Description
This filter hook can override the admin notification email that is sent when a new user registers. The default address that is used by the plugin is the address that is set in the WordPress General Settings (admin menu Settings > General). This filter can set some other address and can also be used to send to multiple addresses.
Parameters
$email
(string)(required) The email to send notifications to (use comma separated string for multiple emails)
Useage
add_filter( 'wpmem_notify_addr', 'my_admin_email' ); function my_admin_email( $email ) { // single email example $email = 'notify@mydomain.com'; // multiple emails example // $email = 'notify1@mydomain.com, notify2@mydomain.com'; // take the default and append a second address to it example: // $email = $email . ', notify2@mydomain.com'; // return the result return $email; }
Changelog
- Introduced in 2.7.5
Source
wpmem_notify_addr is located in includes/class-wp-members-email.php