You need to create your own hook for registration_errors filter:
add_filter( 'registration_errors', 'wpse8170_registration_errors', 10, 3 );
function wpse8170_registration_errors( $errors, $sanitized_user_login, $user_email ) {
if ( /* something happens */ ) {
$errors->add( 'myexception_code', 'This is my message' );
}
return $errors;
}
Related Posts:
- Post-Registration, post-meta hook?
- Updating user meta data from external link, user not logged in
- How can I do customizations on login, registration and password recovery forms?
- Custom form action hook
- update post meta using user_register hook not working
- How to modify an add_action() inside a loop of core function
- How to increase password requirements for registration [closed]
- Can user_register output the password?
- How to send data from a form created by a plugin to an external API?
- Detect change to user_meta and retrieve old and new values
- How to hook in after user’s registration email has been sent?
- Using wp_editor tinyMCE in metabox cause form alert on leaving page
- How to add custom fields to the all users page
- Update a costume wp_usermeta key back to 0 every 24hours (time can be specified as needed)
- Save User Meta Email Address in Lowercase
- register_activation_hook not updating
- Add default user field to WooCommerce checkout [closed]
- Redirect in form handler causing form to be submitted twice
- Register form: add custom field BEFORE default fields
- Custom Front End Registration – How Does the Key work in the Password Set Request?
- How to change the default mail when admin approuved an user?
- Lock user information once fields have been filled in
- Which action hook should I use to intercept a form upon submission?
- How to get user meta fields that have just been updated?
- Associate multiple email addresses with the same user account, so they can log in with either
- How to add fields in custom registration form, validate it and aave to db? [closed]
- hooks for automatic approve user registration according to data in custom fields
- What hooks do I need to hook into to capture ever wp_user creation/change?
- call php file from form and use wp functions
- Linking form to user meta fields
- Delay action unltil the untill previous (hoocked) action is completed
- ‘user_register’ hook – need to distinguish if created from wp admin panel
- add_action doesn’t work for my function
- wp_get_current_user Not working
- Which hook should I use for this scenario regarding the registration process and account/profile update?
- Problem in register activation hook and Copying folder
- prepopulate form from a hook within wordpress function.php file
- admin_post hook not working
- Does wp_login hook fire on user registration?
- wp_usermeta key problem
- Prefix user login_name and validate it is unique on Registration
- Is there a way to send HTML formatted emails with WordPress’ wp_mail() function?
- How to get WordPress’ hooks/actions run sequence?
- Where can I find a list of WordPress hooks?
- Is there a save_post hook for custom post types?
- Where is the right place to register/enqueue scripts & styles
- How to know what functions are hooked to an action/filter?
- How to display user registration form on front-end of the website?
- How to hook update_post_meta and delete_post_meta?
- Are there any hooks that alter the 404 logic?
- Is there a hook that runs after a user logs in?
- Difference between do_action and add_action
- WP Cron Doesn’t Execute When Time Elapses
- WooCommerce: change display order of product short description and price [closed]
- Why do some hooks not work inside class context?
- Adding fields to the “Add New User” screen in the dashboard
- Difference between after_setup_theme and init action hooks?
- get $post in init filter or action?
- What is an easy way to display a front-end user registration form?
- Use wp init hook to call other hooks?
- How many times can I hook into the same action?
- How do I implement the WordPress Iris picker into my plugin on the front-end?
- How to intercept a 404 error
- Move excerpt meta box to above content editor
- Action hook for custom tax edit
- Trigger custom action when setting button pressed
- What is “all” in isset($wp_filter[‘all’])
- Whats worth using add_action when we can simply use add_filter?
- Is there a limit to hook priority?
- Please explain how these hooks work
- Add_action to wp_head via functions.php
- Hook after image is uploaded and image sizes generated
- Is there a hook before the user is authenticated?
- Hook that fires when admin setting is saved
- add_action(‘wp_ajax_[action name]’, myfunction) problem
- WordPress auto login after registration not working
- What is the difference between update_post_meta and update_postmeta hooks?
- Hook ‘wp_enqueue_scripts’ priority has no effect
- Hook on trash post
- Hook *after* user password change?
- Auto-retrieve YouTube Image for Thumbnail?
- Which hook if user profile information is updated?
- How to remove action hook done in a plugin from functions.php in my theme?
- Hooks for trashing, deleting, saving, restoring custom post type
- Is there a WordPress core & plugins update action hook?
- Hook into WordPress update?
- trigger save_post event programmatically
- Implementing advanced add_* function wrappers
- Adding onload to body
- My add_action (wp_footer, ‘method’) is not calling?
- How to display custom user meta from registration in backend?
- Do WordPress Core Filenames Work as Hooks?
- What is the earliest possible hook for safely using `is_front_page`?
- switch_to_blog(): Load textdomain
- How to call a REST endpoint when a post is published?
- __NAMESPACE__ with register_activation_hook
- Can I hook inside another hook?
- Adding function directly vs using hook in function.php
- Save custom user meta on registration
- Are hooks called synchronously?