glasnhost
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Editor Tools] Older versions, where?ok, under Developer…
Forum: Plugins
In reply to: Plugins visible to editors/authors?The easy uploader plugin was a little bit trickier, because the menu is added to the management options, ONLY if the user is allowed to manage them. So I had to remove first
if (current_user_can('manage_options'))
and then add the menu as a separate menu, with add_menu_pageForum: Plugins
In reply to: Plugins visible to editors/authors?Well no, I was wrong actually ‘editor’ doesn’t exist, it should be a capability, so if I need just a line:
add_menu_page('FileManager', 'FileManager', 7, '../wp-admin/fm.php');that is, a lower the capability level, now editor&admin can see it
Forum: Plugins
In reply to: Plugins visible to editors/authors?Ah ok, instead of replacing, I just add the line. So now I add_menu_page twice, once with editor and the other with admin capability…
Forum: Plugins
In reply to: Plugins visible to editors/authors?well, if I give the “editor” capability to the plugin, the administrator cannot see it now…that’s not funny
Forum: Plugins
In reply to: Plugins visible to editors/authors?Oh, I’ve found the hack myself for the File manager plugin:
each plugin must add a menu page and set the role attached to it through an add_menu_page functions.
So I just replaced the original line in the plugin code:add_menu_page('FileManager', 'FileManager', 8, '../wp-admin/fm.php');with:
add_menu_page('FileManager', 'FileManager', 'editor', '../wp-admin/fm.php');I guess that for the easy uploader plugin will be the same, but I dind’t find it yet