Issue with menu on left side of dashboard


I really really really really need help!!!!

We have a plugin called store locations on the site which controls the locations on the map. This site is a multisite and have franchisees which can log in using an editor role.

When an editor role logs in they are automatically landed on pages and you will see in the left menu store locations isn’t there, but if you go to testimonials you can see it. But the editor role gets a error notification saying Sorry, you are not allowed to access this page., this seems to be a capability issue.

We have a plugin on the site which is used to assist with the editor role capability but nothing in there to say this. Theres also some things in functions.php but nothin to do with why store locations cant be viewed.

I have spoke to the plugin developer and he said the following;

I havent changed anything.

The error is because of the wordpress capabilities. I wasn’t able to see anything related to the plugin either. I tried adding some but that didnt solve anything.

There is nothing in the plugin that controls who can and can’t see the menu, this should all be done with the permissions on the user role.

This is the code that I’m using to add the option to the sidebar menu –

add_action('admin_menu', 'sl_register_options_page');
function sl_register_options_page() {
'Store Locations', // Page Title
'Store Locations', // Menu Title
'edit-locations', // Capability
// 'store-locator', // Capability
'store-locator', // Slug
'sl_options_page' // Function

// ‘store-locator’, // Capability – This is not being used and wasnt being used before either. I have tried turning it on and assigned the capability to the user role but they still do not have permissions.

So in all theres two issues,

Issue 1- So Store locations. Well the editor role can no longer see it they see a – Sorry, you are not allowed to access this page. And I don’t have a clue what’s append of why this has changed

Issue 2- When you log in if you are an editor and are on any menu item (from the left of dash board) You cant see store locations but if you click on testimonials you can.

Issue one is the most important to try to fix but issue 2 is also really important too

Heres details to site and functions.php –

[Sensitive information removed by moderator]

I really dont know what to do or how to fix this or why it even went wrong and editor role can no longer see it…

PLease help

Many Thanks