I have installed Visual Composer for a client and am now trying to remove the tab from the Dashboard menu. How can I do this?

Remove Visual Composer tab from Dashboard menu

function remove_menus(){

    remove_menu_page( ‘js_composer.php’ );      

}

add_action( ‘admin_menu’, ‘remove_menus’ );

The code used above isn’t working for me. It seems the path “js_composer.php” is not correct.

5 s
5

It is not easy to find it out, but it is pretty easy if you know how.

Add this following code to your themes functions.php.

function custom_menu_page_removing() {
    remove_menu_page('vc-welcome'); //vc
}
add_action( 'admin_init', 'custom_menu_page_removing' );

(Previously been admin_menu, now is admin_init)

This is how to find out for the next time:

If you want to hide a link from any plugin in the admin backend, simply use everything behind the ?page= in this example case it’s vc-welcome

No need for an additional plugin to remove/hide the link.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *