Filter
rpress_admin_notice_emails
On this page
Filters the list of recipient addresses for admin order notifications.
Runs in rpress_get_admin_notice_emails after the recipients are read from the admin notification settings (admin_recipients, one address per line) and split into an array. If none are configured, the site admin email is used. The result is passed as the recipient list when the admin notification is sent.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$emails | array | List of recipient email addresses. |
Return value#
array. The list of recipient email addresses.
Example#
function my_admin_notice_emails( $emails ) {
$emails[] = 'kitchen@example.com';
return array_unique( $emails );
}
add_filter( 'rpress_admin_notice_emails', 'my_admin_notice_emails', 10, 1 );
Source#
Applied in:
includes/emails/functions.php(line 157), inrpress_get_admin_notice_emails()
See also#
Was this page helpful?
