• Resolved adamkolenda

    (@adamkolenda)


    There seems to be no option to hide Wpdevart chart icon from the side back in the backend to roles who do not have permission to use it.

    Is there a snipped I could use to hide it similar to the elementor template I used?

    `if( !current_user_can(‘activate_plugins’) ) {

    function plt_hide_elementor_menus($user ) {

    //Hide “Templates”.
    remove_menu_page(‘edit.php?post_type=elementor_library’);
    }</em>

    add_action(‘admin_menu’, ‘plt_hide_elementor_menus’, 801);
    }`

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdevart

    (@wpdevart)

    Hi @adamkolenda again.

    Unfortunately, there isn’t such a snippet.

    Can you tell us, if you need only to hide the admin menu or you need to disable the whole functionality?

    As it’s a similar topic and you already opened another one, you can ask future questions about it in the other topic.

    We will close this one.

    Thanks.

    Thread Starter adamkolenda

    (@adamkolenda)

    Hi @wpdevart ,

    Disabling the admin menu to non admin users would be fine as I cannot get your permissions working properly on my side.

    Thanks

    Plugin Author wpdevart

    (@wpdevart)

    Dear @adamkolenda.

    We have already provided a solution.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I hide Wpdevart chart from back end to role who do not use it’ is closed to new replies.