Hide Visual composer in the dashboard menu with Membership 2

I have a question for the "Membership 2 Pro" Plugin. I hide a lot of pages on the Admin Side in the backend. But the Visual Composer Plugin is not being hidden. Can you help me?

  • Huberson
    • Recruit

    I have double checked the capabilities again, all Visual composer option are hidden from the other membership except for admin. But visual composer main page remains visible.

    Working on some code that will help you hide visual composer for a specific membership. In the mean time, you can try adding this snippet to your functions.php file or create mu-plugins directory with a custom file to add it.

    function remove_menu_pages() {
        if ( current_user_can( 'edit_pages' ) ) {
            remove_menu_page( 'vc-welcome' );
    add_action( 'admin_init', 'remove_menu_pages' );


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.