Skip to content
Docs
Get RestroPress

Action

rpress_purchase_form_after_user_info

Updated
On this page

Fires to render the contact and order details sections of the checkout form.

Runs in rpress_show_purchase_form() when the visitor is logged in or may check out as a guest. Core hooks rpress_user_info_fields() at priority 10 and rpress_order_details_fields() at priority 11. Hook after 11 to add a section below the order details.

Example#

function my_gift_note_field() {
	echo '<fieldset id="my-gift-note"><legend>' . esc_html__( 'Gift note', 'my-textdomain' ) . '</legend>';
	echo '<input type="text" name="my_gift_note" class="rpress-input" /></fieldset>';
}
add_action( 'rpress_purchase_form_after_user_info', 'my_gift_note_field', 12, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 128), in rpress_show_purchase_form()

See also#

Was this page helpful?