Action
rpress_purchase_form_before_email
Fires before the email field in the checkout contact section.
Runs in rpress_user_info_fields() inside the contact fieldset, after the signed-in line for logged-in customers and before the email address field.
Example#
function my_before_email_field() {
echo '<p class="rp-col-sm-12 my-email-hint">' . esc_html__( 'We send your receipt here.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_purchase_form_before_email', 'my_before_email_field', 10, 0 );
Source#
Fired from:
includes/checkout/template.php(line 307), inrpress_user_info_fields()
See also#
Was this page helpful?
