Action
rpress_purchase_form_register_fields
Fires when the checkout registration fields are rendered via AJAX.
Fires inside the checkout_register AJAX handler, which loads the registration form fragment for the checkout after the nonce check passes. Callbacks echo extra field markup, which is returned to the browser. The handler ends the request after the action.
Example#
function my_register_fields() {
echo '<p><label for="my_phone">' . esc_html__( 'Phone', 'my-plugin' ) . '</label><input type="text" id="my_phone" name="my_phone" /></p>';
}
add_action( 'rpress_purchase_form_register_fields', 'my_register_fields', 10, 0 );
Source#
Fired from:
includes/class-rpress-ajax.php(line 1461), inRP_AJAX::checkout_register()
See also#
Was this page helpful?
