Action
rpress_after_payment_receipt
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#
| Parameter | Type | Description |
|---|---|---|
$payment | WP_Post | Order post object being displayed. |
$rpress_receipt_args | array | Receipt 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?
