Skip to content
Docs
Get RestroPress

Action

rpress_purchase_receipt_after_tax_table

Updated
On this page

Fires after the tax row of the order items table in the order list email tag.

Runs after the tax name and amount row has been rendered, only when taxes are enabled. Output echoed by the callback appears inside the table directly after the tax row, before the discount and total rows.

Parameters#

ParameterTypeDescription
$payment_idintID of the order (payment) being rendered.

Example#

function my_receipt_after_tax_row( $payment_id ) {
	echo '<tr><td colspan="2" style="text-align:right;">' . esc_html__( 'Includes local tax', 'my-plugin' ) . '</td><td></td></tr>';
}
add_action( 'rpress_purchase_receipt_after_tax_table', 'my_receipt_after_tax_row', 10, 1 );

Notes#

Only fires when rpress_use_taxes() returns true.

Source#

Fired from:

  • includes/emails/email-tags.php (line 366), in rpress_email_tag_fooditem_list()

See also#

Was this page helpful?