Home Forums WoodMart support forum Remove Woodmart and WPBakery menu items from backend

Remove Woodmart and WPBakery menu items from backend

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #66113

    Refica
    Participant

    Hi,

    I would like to remove Woodmart and WPBakery menu items (for some users) from backend and have tried this:

    remove_menu_page( 'admin.php?page=woodmart_dashboard' ); // Remove Woodmart
    remove_menu_page( 'admin.php?page=vc-general' ); //WP Bakery

    But that does not do the trick. I don’t want to use a plugin for this to work.

    As you can see the menu items still shows up: See screenshot: http://cloud.refica.dk/3J0f3V1Y0t0d

    Any idea how to remove these items from the backend menu.

    #66119

    Artem Temos
    Keymaster

    Hi,

    Sorry, but we don’t know why this code doesn’t work since it is not our theme’s functionality. If you can’t do this with PHP code, try to hide them with CSS in the dashboard.

    Regards

    #66120

    Refica
    Participant

    Hi Artem,

    What about the part with the Woodmart menu item? That is certainly a part of your theme.

    Kind regards,
    René

    #66121

    Artem Temos
    Keymaster

    Yes, but you are asking about remove_menu_page that is WordPress function. And if it doesn’t work, then it is a WordPress problem or you call it with wrong arguments.

Viewing 4 posts - 1 through 4 (of 4 total)