Action
rpress_render_receipt_in_browser_before
Fires before the receipt content on the in-browser receipt page.
Runs inside the receipt wrapper element on the standalone receipt page rendered by the rpress_view_receipt action, before the receipt shortcode output. Use it to print content above the receipt.
Example#
function my_receipt_page_before() {
echo '<p class="my-receipt-note">' . esc_html__( 'Keep this receipt for your records.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_render_receipt_in_browser_before', 'my_receipt_page_before', 10, 0 );
Source#
Fired from:
includes/emails/template.php(line 297), inrpress_render_receipt_in_browser()
See also#
Was this page helpful?
