Action
rpress_pre_process_register_form
Fires before the registration form submission is validated.
Runs in rpress_process_register_form for a logged-out visitor who submitted the registration form (rpress_register_submit is present in POST). It runs before any field validation, so it is a place for extra checks such as spam traps. Add an error with rpress_set_error to stop registration. It takes no arguments.
Example#
function my_check_register_honeypot() {
if ( ! empty( $_POST['my_website'] ) ) {
rpress_set_error( 'my_spam', __( 'Registration could not be completed.', 'my-plugin' ) );
}
}
add_action( 'rpress_pre_process_register_form', 'my_check_register_honeypot' );
Source#
Fired from:
includes/login-register.php(line 120), inrpress_process_register_form()
See also#
Was this page helpful?
