@rick111,
Yes, but you need to use a little code, see the ‘s2_admin_email’ hook in the API documentation here:
http://subscribe2.wordpress.com/support/api/
Thanks but pls help because I am not a programmer, just a user although I know how to create a custom plugin with this hook. The code is
function my_admin_filter($recipients = array(), $email) {
// $recipients is an array of admin email addresses
// $email will be 'subscribe' or 'unsubscribe'
if ($email == 'subscribe') {
foreach ($recipients as $key => $email) {
if ( $email == '[email protected]') {
unset($recipients[$key]);
}
}
$recipients[] = '[email protected]';
}
return $recipients;
}
add_filter('s2_admin_email', 'my_admin_filter', 10, 2);
If I have 10 admin email addresses but I want only to have: [email protected] receive the confirmation emails how to I change the code? Thanks
@rick111,
You would need to simply return only the email you want so something like this inside the function:
return array('[email protected]');
Thank you for the excellent support.
So i figured I will replace
$recipients[] = ‘[email protected]’;
with
$recipients[] = ‘[email protected]’;
and add after that
return array(‘[email protected]’);
is this correct?
@rick111,
You don’t need the first line as the second one ignores the $recipients variable.