Action
rpress_register_account_fields_after
Fires at the end of the account creation fieldset.
Runs in rpress_get_register_fields() after the password field, before the fieldset closes. Use it to add fields to account creation.
Example#
function my_register_account_fields_after() {
echo '<p class="rp-col-sm-12"><label for="my-birthday">' . esc_html__( 'Birthday', 'my-textdomain' ) . '</label>';
echo '<input type="date" name="my_birthday" id="my-birthday" class="rpress-input" /></p>';
}
add_action( 'rpress_register_account_fields_after', 'my_register_account_fields_after', 10, 0 );
Source#
Fired from:
includes/checkout/template.php(line 712), inrpress_get_register_fields()
See also#
Was this page helpful?
