Hi,
I just noticed something very disturbing since my move to Wordpress 5 and Gutenberg:
When I modify custom capabilities of members via the user panel in ‘users’ section, this has no effect and does not modify their custom capabilities!!!
Did you notice that and know how to resolve this situation?
thank you in advance, best regards.
Custom capabilities and Wordpress 5 / Gutenberg
Interesting.
I just tried it and couldn’t reproduce that. In my test the ccap was saved for the user.
Do you have another WP installation to test it in? Or can you disable one plugin at a time to try after each and see if the ccap gets saved?
Hi Cristian,
When you manually modify custom capabilities via the ‘users’ tab of the user panel, capabilities of member are really updated in your database?
Thanks.
Yes. After saving the edited user profile with the new capability, I go to the users list and I see he has the new capablity displayed there too. I verified it using the User Role Editor plugin as well.
Remember that in the profile page’s form, s2Member ccaps look like just the name you give it, e.g. “name”, but the full custom capability would actually be access_s2member_ccap_name
.
Hi,
Yes I know that but it doesn’t work on my installation, I will investigate to find what is the trouble.
How do you verify ccaps with User Role Editor?
Thanks for your help, best regards.
When you have User Role Editor active in your WP, you’ll find it here WP Admin > Users > User Role Editor.
Also, in your Users list, when you hover over the avatar/username, there’ll be a new “Capabilities” link.
And in the user profile editor too, at the bottom of the form.
I hope that helps.