Filter
rpress_admin_order_notification_heading
On this page
Filters the heading of the admin order notification email.
Runs in rpress_admin_email_notice after the heading is read from the admin notification settings (or the order_notification_heading option). Email tags in the heading are replaced after this filter runs.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$heading | string | Heading text, which may contain email tags. |
$payment_id | int | ID of the order. |
$payment_data | array | Order meta passed to the admin notice. |
Return value#
string. The heading text.
Example#
function my_admin_order_heading( $heading, $payment_id, $payment_data ) {
return $heading . ' (#{order_id})';
}
add_filter( 'rpress_admin_order_notification_heading', 'my_admin_order_heading', 10, 3 );
Source#
Applied in:
includes/emails/functions.php(line 132), inrpress_admin_email_notice()
See also#
Was this page helpful?
