Forums

How do you add a menu item for subcribers? (8 posts)

  1. sc456a
    Member
    Posted 5 years ago #

    I'm using an events calendar plug-in that I want to give subscribers access to. It has the following line of code that adds a menu item under Dashboard for admin users:

    add_action('admin_menu', 'ManagementInit_071181');

    How can setup the subscriber menu to see this as well. How about the other levels of users?

  2. sc456a
    Member
    Posted 5 years ago #

    Anyone?

  3. MichaelH
    Member
    Posted 5 years ago #

    Usually you have to use something like the Role Manager plugin for something like that.

    Find the link to that plugin at the bottom of Roles and Capabilities

  4. jasonbenesch
    Member
    Posted 5 years ago #

    You are looking at the wrong action...

    Check out this page:
    http://codex.wordpress.org/Adding_Administration_Menus

    add_menu_page(page_title, menu_title, access_level/capability, file, [function]);

    That is what you need to find.

  5. jasonbenesch
    Member
    Posted 5 years ago #

    Then edit the access_level/capability and make it lower, like 2.

  6. sc456a
    Member
    Posted 5 years ago #

    Firstly, I don't want to change the permissions assigned to the roles. Second, I'm not trying to add a menu for the administrator.

    I have the roles plugin installed but I don't see how that will allow me to add a menu for subscribers...

  7. jasonbenesch
    Member
    Posted 5 years ago #

    Isn't there already a menu for the admin?

  8. sc456a
    Member
    Posted 5 years ago #

    Yes, but I want the menu for the subscriber.

Topic Closed

This topic has been closed to new replies.

About this Topic