Skip to content
Docs
Get RestroPress

Action

rpress_purchase_form_before_submit

Updated
On this page

Fires before the checkout submit section.

Runs at the start of rpress_checkout_submit(). Core hooks rpress_print_errors (default priority), rpress_terms_agreement (default priority) and rpress_checkout_final_total (priority 999) here. Use priority above 999 to output below the order total.

Example#

function my_before_submit() {
	echo '<p class="my-before-submit">' . esc_html__( 'Review your order before placing it.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_purchase_form_before_submit', 'my_before_submit', 1000, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 1082), in rpress_checkout_submit()

See also#

Was this page helpful?