Skip to content
Docs
Get RestroPress

Filter

rpress_admin_order_notification_subject

Updated
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#

ParameterTypeDescription
$subjectstringSubject with HTML tags stripped. It may still contain email tags.
$payment_idintID 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), in rpress_admin_email_notice()

See also#

Was this page helpful?