[Plugin: Post-to-Post Links II] Sidebar menu addition shouldn't be visible to editors
-
When installing the plugin the plugin adds a new option to the “Settings” section in the admin sidebar. So far so good, however this option is also visible to editors and that’s of course something we don’t want as administrators ??
Here is the fix:
function setupAdmin() { add_options_page(P2P_DISPLAY_NAME, P2P_DISPLAY_NAME, 6,
should become:
function setupAdmin() { add_options_page(P2P_DISPLAY_NAME, P2P_DISPLAY_NAME, 8,
Note that the 6 has changed into an 8.
https://codex.www.ads-software.com/Roles_and_Capabilities#User_Levels
https://www.ads-software.com/extend/plugins/post-to-post-links-ii/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Post-to-Post Links II] Sidebar menu addition shouldn't be visible to editors’ is closed to new replies.