Skip to content
Docs
Get RestroPress

Action

rpress_checkout_form_top

Updated
On this page

Fires at the top of the checkout form.

Runs inside the checkout form tag in rpress_checkout_form(), before rpress_purchase_form and rpress_payment_mode_select. Output here appears at the start of the form.

Available since RestroPress 1.0.

Example#

function my_checkout_form_top() {
	echo '<input type="hidden" name="my_source" value="web" />';
}
add_action( 'rpress_checkout_form_top', 'my_checkout_form_top', 10, 0 );

Source#

Fired from:

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

See also#

Was this page helpful?