WordPress.org

Ready to get started?Download WordPress

Forums

WP Live Chat Support
[resolved] Grant Editor Role Access to WP Live Chat menu (4 posts)

  1. Frenkie
    Member
    Posted 12 months ago #

    Hi there,

    I would like my client to get access to the wp live chat menu (pages) in the wp backend so they can handle chats themselves. How to do this? I already installed the 'members' plugin to check out if i could customize the editor role so it can access the wp live chat menu but i couldn't find anything.

    Is there a solution for this? Hope to hear asap, thanks in advance!

    Kind regards,

    http://wordpress.org/extend/plugins/wp-live-chat-support/

  2. WP-LiveChat
    Member
    Plugin Author

    Posted 11 months ago #

    Hi
    So sorry for the delay!
    You can do this by editing the following in wp-live-chat-support.php:

    function wplc_admin_menu() {
        $wplc_mainpage = add_menu_page('WP Live Chat', __('Live Chat','wplivechat'), 'manage_options', 'wplivechat-menu', 'wplc_admin_menu_layout');
        add_submenu_page('wplivechat-menu', __('Settings','wplivechat'), __('Settings','wplivechat'), 'manage_options' , 'wplivechat-menu-settings', 'wplc_admin_settings_layout');
        add_submenu_page('wplivechat-menu', __('History','wplivechat'), __('History','wplivechat'), 'manage_options' , 'wplivechat-menu-history', 'wplc_admin_history_layout');
    
    }

    to

    function wplc_admin_menu() {
        $wplc_mainpage = add_menu_page('WP Live Chat', __('Live Chat','wplivechat'), 'delete_others_pages', 'wplivechat-menu', 'wplc_admin_menu_layout');
        add_submenu_page('wplivechat-menu', __('Settings','wplivechat'), __('Settings','wplivechat'), 'delete_others_pages' , 'wplivechat-menu-settings', 'wplc_admin_settings_layout');
        add_submenu_page('wplivechat-menu', __('History','wplivechat'), __('History','wplivechat'), 'delete_others_pages' , 'wplivechat-menu-history', 'wplc_admin_history_layout');
    
    }

    Does that help?

    Kind regards
    Nick

  3. Frenkie
    Member
    Posted 11 months ago #

    That worked, thakns!

  4. ponwude
    Member
    Posted 1 month ago #

    Hi,

    I have the pro version or WP live chat and i want to grant access to a custom role that i created so specific users within the client organisation can have access to live chat (and only live chat) and handle the chat themselves.

    NEVERMIND, I GOT IT.

    regards

    Paul

Reply

You must log in to post.

About this Plugin

About this Topic