Filter
rpress_admin_order_notification_subject
On this page
Filters the subject line of the admin order notification email.
Runs in rpress_admin_email_notice after the subject is read from the admin notification settings (or the default New order received subject) and stripped of tags. Email tags are replaced after this filter runs.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$subject | string | Subject with HTML tags stripped. It may still contain email tags. |
$payment_id | int | ID of the order. |
Return value#
string. The subject line.
Example#
function my_admin_order_subject( $subject, $payment_id ) {
return '[Kitchen] ' . $subject;
}
add_filter( 'rpress_admin_order_notification_subject', 'my_admin_order_subject', 10, 2 );
Source#
Applied in:
includes/emails/functions.php(line 129), inrpress_admin_email_notice()
See also#
Was this page helpful?
