Skip to content
Docs
Get RestroPress

Action

rpress_purchase_form_user_info_fields

Updated
On this page

Fires after the checkout contact fields have been output.

Runs in rpress_user_info_fields() after rpress_purchase_form_user_info, still inside the contact fieldset. Core hooks rpress_checkout_create_account_fields() here, which prints the optional create-account checkbox for guests.

Example#

function my_user_info_fields_extra() {
	echo '<p class="rp-col-sm-12"><label><input type="checkbox" name="my_marketing_optin" value="1" /> ' . esc_html__( 'Send me offers', 'my-textdomain' ) . '</label></p>';
}
add_action( 'rpress_purchase_form_user_info_fields', 'my_user_info_fields_extra', 20, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 339), in rpress_user_info_fields()

See also#

Was this page helpful?