Skip to content
Docs
Get RestroPress

Action

rpress_purchase_form_order_details

Updated
On this page

Fires after the order note field in the checkout order details section.

Runs at the end of rpress_order_details_fields(), after the service instructions textarea and before rpress_purchase_form_order_details_fields.

Example#

function my_order_details_field() {
	echo '<p class="rp-col-sm-12"><label for="my-cutlery">' . esc_html__( 'Cutlery', 'my-textdomain' ) . '</label>';
	echo '<input type="checkbox" name="my_cutlery" id="my-cutlery" value="1" /></p>';
}
add_action( 'rpress_purchase_form_order_details', 'my_order_details_field', 10, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 402), in rpress_order_details_fields()

See also#

Was this page helpful?