Plugin Author
Gabor
(@nextendweb_gabor)
Hi! If you would open up this file:
wp-content\plugins\nextend-accordion-menu\nextend-accordion-menu.php
from line 39. there is this code:
if(is_admin()){
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'admin.php');
}
what you could modify to this:
global $current_user;
get_currentuserinfo();
if(is_admin() && isset($current_user->caps['administrator'])){
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'admin.php');
}
which would check if your current user’s role is administrator, and only call in our backend files, if it is.
Thread Starter
planky
(@planky)
Worked a treat, thank you. It does means I’ll have to re-do if/when the plugin gets updated.
Potential future feature?
Plugin Author
Gabor
(@nextendweb_gabor)
Sure, I will put this into the to do list!