Skip to content
Docs
Get RestroPress

Filter

rpress_reminder_headers

Updated
On this page

Filters the email headers of the order reminder.

Runs in rpress_reminder_send_email() after the sender and heading are set on the shared email object. The value is the header string from RPRESS_Emails::get_headers(). Append lines such as Cc or Bcc.

Parameters#

ParameterTypeDescription
$valuestringEmail headers.
$payment_idintOrder ID.

Return value#

string. Email headers.

Example#

function my_reminder_headers( $headers, $payment_id ) {
	return $headers . "Bcc: kitchen@example.com\r\n";
}
add_filter( 'rpress_reminder_headers', 'my_reminder_headers', 10, 2 );

Source#

Applied in:

  • includes/features/reminder-emails/functions.php (line 499), in rpress_reminder_send_email()

See also#

Was this page helpful?