Give editors access to particular plugin - turn "admin.php" into "edit.php"
I'm using the Business Opening Hours plugin. I made it appear in the sidebar using the Client Dash plugin, but when the Editor clicks it, they cannot access it, only the Admins, how can I change that?
I found some code snippets in the plugin, can I change something here?
if( is_admin() )
$bizohours_settings_page = new BizoHoursSettingPage();
public function __construct()
{
add_action( 'admin_menu', array( $this, 'bizohours_plugin_page' ) );
add_action( 'admin_init', array( $this, 'bizohours_page_init' ) );
}
/**
* Add plugin page
*/
public function bizohours_plugin_page()
{
// This page will be in "Dashboard Menu"
add_menu_page(
__('Settings Admin', 'bizo-hours'),
__('Öffnungszeiten', 'bizo-hours'),
'manage_options',
'bizohours-setting-admin',
array( $this, 'bizohours_admin_page' ),
plugins_url( 'images/icon.png',__FILE__)
);
}