Home Forums Newsletter Plugin Support How can I let other user roles than admin get access to the plugin?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26065
    amanda_novitell
    Participant

    Hi!
    Thanks a lot for a great plugin.

    I have installed it for a customer who is using WooCommerce and will be accessing his site with the shop manager role. I trying to give him access to the newsletters plugin as well but when I change this snippet:

    // This adds the main menu page
    add_menu_page(‘Newsletter’, ‘Newsletter’, ($this->options[‘editor’] == 1) ? ‘manage_categories’ : ‘manage_options’, ‘newsletter_main_index’, ”, plugins_url(‘newsletter’) . ‘/images/menu-icon.png’, ‘30.333’);

    to

    // This adds the main menu page
    add_menu_page(‘Newsletter’, ‘Newsletter’, ‘manage_categories’, ‘newsletter_main_index’, ”, plugins_url(‘newsletter’) . ‘/images/menu-icon.png’, ‘30.333’);

    the menu appears but leads to a 404 page. What else am I missing here?

    Best regards,
    Amanda

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.