Is it possible to specify two usergroups (e.g. admins and editors) into the admin menu capability field ? I tried the following but it doesnt work:
add_submenu_page(
'my-top-level-handle',
'Page title',
'Sub-menu title',
array('administrator', 'editor'),
'my-submenu-handle',
'my_magic_function'
);
error message:
Warning: Illegal offset type in isset or empty in C:\wamp\www\wordpress\wp-includes\capabilities.php on line 712