Skip to content
Docs
Get RestroPress

Action

rpress_before_purchase_form

Updated
On this page

Fires before the checkout form element is output.

Runs in rpress_checkout_form() inside the checkout form wrapper, after rpress_checkout_service_options and before the form tag opens. Use it to print content above the form.

Example#

function my_before_purchase_form() {
	echo '<div class="my-checkout-banner">' . esc_html__( 'Free napkins with every order.', 'my-textdomain' ) . '</div>';
}
add_action( 'rpress_before_purchase_form', 'my_before_purchase_form', 10, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 32), in rpress_checkout_form()

See also#

Was this page helpful?