Skip to content
Docs
Get RestroPress

Action

rpress_after_payment_receipt

Updated
On this page

Fires after the order receipt and tracking page content.

Runs at the end of the receipt template, inside the receipt wrapper, after the order summary has been printed.

Parameters#

ParameterTypeDescription
$paymentWP_PostOrder post object being displayed.
$rpress_receipt_argsarrayReceipt shortcode attributes, such as the payment_key and which sections to show.

Example#

add_action( 'rpress_after_payment_receipt', 'my_after_receipt', 10, 2 );
function my_after_receipt( $payment, $rpress_receipt_args ) {
	echo '<p>' . esc_html__( 'Thanks for ordering with us.', 'my-textdomain' ) . '</p>';
}

Source#

Fired from:

  • templates/shortcode-receipt.php (line 379)

See also#

Was this page helpful?