then at the end of user-reg-aide-registrationForm before the end of the class add the following:
/**
* Bypasses new user approve register post action
* @since 1.5.1.0
* @updated 1.5.1.0
* @Filters ‘registration_errors’ line 219 user-registration-aide.php (Priority: 1 – Params: 3)
* @access public
* @accepts WordPress Object $errors
* @accepts string $username
* @accepts string $email
* @author Brian Novotny
* @website https://creative-software-design-solutions.com
*/
function handle_new_user_approve_errors( $user_login, $user_email, $errors ){
$errors = $this->csds_userRegAide_checkFields( $errors, $user_login, $user_email );
if( empty( $errors ) ){
// create the user
$user_pass = wp_generate_password( 12, false );
$user_id = wp_create_user( $user_login, $user_pass, $user_email );
if ( !$user_id ) {
$errors->add( ‘registerfail’, sprintf( __( ‘ERROR: Couldn’t register you… please contact the webmaster !’ ), get_option( ‘admin_email’ ) ) );
}
}else{
}
}
that worked for mine he should not have used register post, that is a bad idea. The only thing is when it shows an error for an empty field it shows it twice but when I make this into the next release I will fix that too.