Oct 18, 2017 6:26 pm
How i can change DEFAULT password MINIMUM length when user REGISTER?
I use wpforo and userpro.. and userpro password min length = 8, wpforo = 6.. when user have pass with 6 length, userpro behave incorrectly
7 Replies
Oct 18, 2017 6:40 pm
You can change the password min length using this hook code in your current active WordPress theme functions.php file. I set it 3 in the code, you can change it to whatever you want:
add_filter('wpforo_pass_min_length', function ($length){ return 3;} );
Oct 18, 2017 8:39 pm
thnx!
Jan 18, 2021 9:16 am
@robert Thanks. You provided the following for the minimum length. I was just curious how to additionally set the "max" length for the password.
add_filter('wpforo_pass_min_length', function ($length){ return 3;} );
Please let me know if there's also an option for "max" length?
Gary