User-defined role cant see settings menu
-
This is a coding question …for the developer.
I have created a new “SuperUser” role. (it is a user-defined role …different from the “Super User” that exists only in wp multisite). This new role has all the same default privileges as “administrator” but it is a separate and distinct role from “administrator” (On the sites I manage, some capabilities are removed from the “administrator” role).THE PROBLEM:
The call to add_submenu_page() in iqblockcountry_create_menu() expects a capability for the 4th argument but a role is being passed instead (“administrator”). This works for most users but it doesn’t work for my “SuperAdmin” user role so the result is that the IQ Block Country settings menu does not show in the dashboard for this role, which is intended to be higher than “administrator” role.THE QUESTION:
Can you recommend a workaround that doesn’t involve changing a plugin file so that I would be able to update IQ Block Country to a new version without “breaking” the ability to see the IQ Block Country settings page? Thank you.
- The topic ‘User-defined role cant see settings menu’ is closed to new replies.