Title: registration plugin help
Last modified: August 19, 2016

---

# registration plugin help

 *  [Jason](https://wordpress.org/support/users/grafikimon/)
 * (@grafikimon)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/registration-plugin-help/)
 * I am working on a plugin for the registration process. This is a function that
   should add it’s own error to the existing errors when registering a new account.
   I don’t get an error but it doesn’t get added to the list of errors on the login
   page either. Can anyone help me with this?
 *     ```
       function compareEISnumber(){
       $errors = new WP_Error();
       $errors->add('wrong_license', __('<strong>ERROR</strong>: This is not a valid license number.'));
   
       $errors = apply_filters( 'registration_errors', $errors );
       if ( $errors->get_error_code() )
       		return $errors;
   
       }
       add_action('register_post', 'compareEISnumber');
       ```
   
 * It called but does not add the

The topic ‘registration plugin help’ is closed to new replies.

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jason](https://wordpress.org/support/users/grafikimon/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/registration-plugin-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
