Remove The Password Confirm Field

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/
By default, the Restrict Content Pro registration form has two password fields:

Password
Password again

This tutorial will show you how to remove the “password again” field. This means users will only need to enter their password one time.
Step 1: Remove The “password again” Form Field
Add this custom CSS snippet to Appearance > Customize > Additional CSS to hide the password again field:
#rcp_password_again_wrap {
display: none;
}

Step 2: Remove The “passwords do not match” Error
Just removing the field isn’t enough, because RCP is expecting the password to be entered a second time and will throw an error if the second field doesn’t match the first. To combat this, we need to remove the “Passwords do not match” error message. To do that, add this code to your child theme’s functions.php file or to a custom plugin:
remove( ‘password_mismatch’ );
}

add_action( ‘rcp_form_errors’, ‘ag_rcp_remove_password_mismatch’ );
Please note: All of these examples serve as a guideline and are here for your convenience. We do not provide support for troubleshooting or modifying these and we do not provide support for any custom development. If you need help with any of these examples, consider hiring a developer.

Have more questions?

Submit a request