joeltron1
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
So I think I managed to get it to work by reworking the validation function in includes/form/class-ur-form-field-user-email.php to the following.
public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) { $email = isset( $form_data->value ) ? $form_data->value : ''; $status = is_email( $email ); if ( email_exists( $email ) ) { // On multisite, ensure user exists on current site if ( is_multisite() ) { // assign user to blog and set their status to pending $user_data = get_user_by( 'email', $email ); if ( $user_data && ! is_user_member_of_blog( $user_data->ID, get_current_blog_id() ) ) { add_user_to_blog( get_current_blog_id(), $user_data->ID, 'customer' ); $user_manager = new UR_Admin_User_Manager( $user_data->ID ); $user_manager->save_status( $status, $alert_user=false ); } else { $error='Email alaredy exists on this site.'; } } else { $error='Email alaredy exists.'; } if($error) add_filter( $filter_hook, function ( $msg ) { return __( $error, 'user-registration' ); } ); } }
.user-registration-form-row { display: block !important; }
should do the trick.
It seems your /et-cache/33281/et-core-unified-33281-15753410469364.min.css is hiding them with
.page-id-33281 p:not(.has-background):last-of-type { display: none; }
Viewing 2 replies - 1 through 2 (of 2 total)