User with role Editor want to change "Pop Up!" on site…

How can I give him possibilities to do it?

Regards!

  • Vinod Dalvi
    • WP Unicorn

    Hi @zetzet,

    I hope you are well today and thank you for your question.

    To allow editor role to change Pop Up you have to change edit the code in the file popover/popoverincludes/classes/popoveradmin.php . Open it and search for this function add_menu_pages(){} in this function change the parameter from manage_options to edit_pages for the functions add_menu_page() and add_submenu_page() as shown int the following code. Do it for all those menu pages which you want to be accessible for editor role.

    Before Editing:

    add_menu_page(__('Pop Overs','popover'), __('Pop Overs','popover'), 'manage_options', 'popover', array(&$this,'handle_popover_admin'), popover_url('popoverincludes/images/window.png'));

    After Editing:

    add_menu_page(__('Pop Overs','popover'), __('Pop Overs','popover'), 'edit_pages', 'popover', array(&$this,'handle_popover_admin'), popover_url('popoverincludes/images/window.png'));

    Best Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.