WordPress.org

Ready to get started?Download WordPress

Forums

Post-to-Post Links II
[resolved] Sidebar menu addition shouldn't be visible to editors (4 posts)

  1. Steven
    Member
    Posted 3 years ago #

    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.

    http://codex.wordpress.org/Roles_and_Capabilities#User_Levels

    http://wordpress.org/extend/plugins/post-to-post-links-ii/

  2. Mike Toppa
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Steven - the purpose of the plugin is to provide a standardized way for post authors to make links to other posts. So it's intended for editors... or am I missing your point?

  3. Steven
    Member
    Posted 3 years ago #

    Well yes that's true however the editors don't have to see the option to uninstall the plugin ;)

  4. Mike Toppa
    Member
    Plugin Author

    Posted 3 years ago #

    Good point! In the next version I will set it to use the standard uninstall option that WordPress now provides directly from the plugin menu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic