User Role unable to edit custom field on user-edit.php
-
Hi there,
we use a plugin (custom made for us) to store an expiry date of our users and an additional user information field in the database. Moreover we use different custom roles to regulate access to certain website areas. There are the WordPress core admin role, a custom “usermanager” and a “customer” role, among others.
Usually the Usermanager enters the WordPress core edit-user.php site, enters or edits the expiry date and/or additional info field, saves and exits the site.
But ever since a few Ultimate Member updates back, the usermanager isn’t able to enter or edit these custom fields. Any of the changes made will not be stored in the database, when they hit the “update user profile” button.
By rolling the plugin back on a testserver we found out that this used to work perfectly fine up until v2.1.7. The issue begins in with v2.1.8.
There is an if-condition in the custom plugin, that requires the user to have the “edit_user” capability in order to perform the field updates, if I read that correctly. But the usermanager role does have this cap of course.
We can not say if the usermanager role was created with Ultimate Member or another role editor we used before. But anyhow, if we create a copy of the admin role with exactly the same capabilities via the UM role editor, the user of that role will not be able to edit the custom fields on edit-user.php either.
We use a Linux/Ubuntu web server and the newest WordPress release. Rolling back the WP version didn’t help with the problem. So everything is pointing to Ultimate Member.
Any ideas or solutions about this issue would be much appreciated. Thank you!
The page I need help with: [log in to see the link]
- The topic ‘User Role unable to edit custom field on user-edit.php’ is closed to new replies.