try to give me exactly the version that doesn’t work with you e.g. 2.7.3 or 2.8 or 2.8.1
Thank you for the quick response!
V 2.8.2
Now I tested version 2.7.3 from the archive – everything works fine.
2.8.2 does not work even with disabled settings (only a limitation on the login length of 4-15 characters is left.
this plugin you mean:
https://wordpress.org/plugins/ajax-login-registration/
if this is the case, then it does not work with mine because this plugin uses java (ajax) to get the response for fields and it uses the “wp_insert_user” function to insert the new user directly without filters.
more of that, it has its own error messages and its own registration form.
-
This reply was modified 7 months, 3 weeks ago by
Benaceur.
-
This reply was modified 7 months, 3 weeks ago by
Benaceur.
By default the name of the username field in the registration form is “user_login” however this plugin has named the field “username”, so in this case we will filter the name:
1- edit this file “wp-content\plugins\restrict-usernames-emails-characters\classes\classe_val.php”
2- just above this line:
$__valid = $this->mu_bp() ? true : $valid;
add:
$login = apply_filters( 'benrueeg_rue_filter_field_user_login', $login);
3- add this code in “functions.php” of your current theme:
add_filter( 'benrueeg_rue_filter_field_user_login', function() {
return isset($_POST['username']) ? $_POST['username'] : '';
});
Follow this topic, if there is new, I will inform you about it here.
-
This reply was modified 7 months, 3 weeks ago by
Benaceur.
Thank you, it works! If possible, add the appropriate changes to the next release.
The issue has been fixed, update the plugin.
you can now enter “username” in settings page of plugin.