Support » Plugins » add submenu page and permissions

  • 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?

  • The topic ‘add submenu page and permissions’ is closed to new replies.