Hi @packerland,
Thank you for the questions. When you clone a role, AAM literally takes all role capabilities and create a new role with them however WordPress core works slightly different. The final list of capabilities for user is a combination of role capabilities, role slug and capabilities that were assigned directly to user.
Because new role that you created is not names as “Administrator”, it does not have a “administrator” slug and a lot of plugins check if role is “administrator”.
There is a work around it. Simply create a custom capability “administrator” and make sure that it is checked for your custom role.
You can also learn more about how to manage access to Backend menu from this article.
Regards,
Vasyl
For some reason, I just can’t seem to understand the article. I was able to add the “administrator” capability, and one of the plugins have now appeared. But I can’t seem to understand how to restrict access from Contact Form 7.
Hi @packerland,
I understand that you do not understand 🙂 WordPress can be a little bit confusing sometimes.
So to manage access to the Contact Form 7 for roles, go to Capabilities tab (https://aamplugin.com/help#capabilities) and create following custom capabilities:
– wpcf7_read_contact_forms;
– wpcf7_edit_contact_forms;
– wpcf7_manage_integration;
Refresh the page and you’ll see Contact menu on the Backend Menu tab.
Regards,
Vasyl
Hi @vasyltech,
That worked perfect! If I were to come across another plugin like Contact Form 7, with “dynamic capability”, how do I figure out what slug to enter for the custom capability?
Hi @vasyltech,
I’ve cloned the Administrator Role (named Client Administrator), but I don’t want AAM to show up in the dashboard (Backend Menu). Do I need to add a Capability to remove this?
As I’ve inquired prior, how do I figure out what slug to enter for the custom capability?