• Resolved worldsdream

    (@worldsdream)


    Hi developer,

    View post on imgur.com

    Can you please tell me why you can’t give us an option to hide “Visual Composer” in the admin menu?

    I know we can hide it by using:

    function custom_menu_page_removing() {
        remove_menu_page('vc-general'); //vc
    }
    add_action( 'admin_menu', 'custom_menu_page_removing' );

    Is this an issue with VC plugin? If yes, I can ask them to look here in this topic. Or this something that can be handled on your end? Thank you.

    Regards

    Update: Or is this only possible with the PRO version?

    • This topic was modified 6 years, 10 months ago by worldsdream.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    My answer is built on VC v. 4.12. I don’t have the latest version on hands.
    VC protects its menu with ‘exists’ capability:

    
    Visual Composer		exist	admin.php?page=vc-general
    General Settings	manage_options	admin.php?page=vc-general
    Role Manager	manage_options	admin.php?page=vc-roles
    Design Options	manage_options	admin.php?page=vc-color
    Custom CSS	manage_options	admin.php?page=vc-custom_css
    Product License	manage_options	admin.php?page=vc-updater
    Shortcode Mapper	manage_options	admin.php?page=vc-automapper
    Grid Builder	edit_posts	edit.php?post_type=vc_grid_item
    About	exist	admin.php?page=vc-welcome
    

    “Everyone is allowed to exist” – it’s a comment from WordPress core WP_User class has_cap() function source code. Thus, every logged-in user has ‘exist’ capability, in spite of his real permissions. So at least 1 menu item (“About”) from “Visual Composer” menu is available to any user, who has access to wp-admin. We can not revoke ‘exist’ capability from a role or user using “User Role Editor”.

    It’s more a question to VC developers, why they protected VC menu this way. It’s a some kind of advertisement, I think.

    Yes, it’s possible to hide VC menu with a help of “Admin menu access” add-on included into Pro version of User Role Editor.

    Thread Starter worldsdream

    (@worldsdream)

    Thanks for the clarification. As always you have the best support ever. Resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why can’t we hide the VC plugin from admin menu?’ is closed to new replies.