Remove The Password Confirm Field

By default, the Restrict Content Pro registration form has two password fields:

  1. Password
  2. 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:

 * This will remove the "password again" requirement on the registration form.
function ag_rcp_remove_password_mismatch( $posted ) {
	rcp_errors()->remove( 'password_mismatch' );

add_action( 'rcp_form_errors', 'ag_rcp_remove_password_mismatch' );
Powered by Zendesk