Skip to content
Docs
Get RestroPress

Filter

rpress_admin_order_notification_heading

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

ParameterTypeDescription
$headingstringHeading text, which may contain email tags.
$payment_idintID of the order.
$payment_dataarrayOrder 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), in rpress_admin_email_notice()

See also#

Was this page helpful?