WordPress.org

Ready to get started?Download WordPress

Forums

add submenu page and permissions (1 post)

  1. mattyrob
    Member
    Posted 7 years ago #

    In my plugin I have the following line:

    add_submenu_page('profile.php', __('Subscriptions', 'subscribe2'), __('Subscriptions', 'subscribe2'), "read", __FILE__, array(&$this, 'user_menu'));

    This adds a submenu to profile.php so users can manage email subscriptions.

    Since 2.0.6 it is no longer working - the menu is available but clicking on it gives an error message:

    "You do not have sufficient permissions to access this page."

    It appears that the issue arises in the user_can_access_admin_page() function.

    Any ideas for a workaround?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.