I need to remove the few admin menus of BeTheme from admin wordpress menu. Although this code works (when added to functions.php) for usual wordpress admin menus

 add_action( 'admin_menu', 'my_remove_menu_pages' );

  function my_remove_menu_pages() {
    remove_menu_page( 'edit.php' );                   //Posts
    remove_menu_page( 'upload.php' );                 //Media
    remove_menu_page( 'edit-comments.php' );          //Comments
    remove_menu_page( 'themes.php' );                 //Appearance
    remove_menu_page( 'users.php' );                  //Users
    remove_menu_page( 'tools.php' );                  //Tools
    remove_menu_page( 'options-general.php' );        //Settings


For BeTheme additional pages I can't manage to hide them. These pages have links:


I tried with only end names 'betheme' and together with page=betheme but nothing.

How could i remove these menu items from admin wordpress menu?

  • have you had a look through the theme files to see where/how they're added? might help in figuring out how to remove them. You also need to make sure that you remove them after they're added in case the code to add them runs after yours.
    – mozboz
    Jul 5, 2020 at 22:03
  • No mozboz, how do I do that?
    – Jessica217
    Jul 5, 2020 at 22:10
  • Search in all the .php files in the theme directory for one of those strings from the menu links, e.g. 'be-changelog'.
    – mozboz
    Jul 5, 2020 at 22:53
  • Thanks, I have found it in two files. One of them content is: <?php endif; ?> 95 <a href="admin.php?page=be-support" class="nav-tab<?php if( $current_screen == 'betheme_page_be-support' ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manual & Support', 'mfn-opts' ); ?></a> 96: <a href="admin.php?page=be-changelog" class="nav-tab<?php if( $current_screen == 'betheme_page_be-changelog' ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Changelog', 'mfn-opts' ); ?></a> 97 </h2> So I tried remove_menu_page( 'betheme_page_be-changelog' ); and remove_menu_page( 'Changelog'
    – Jessica217
    Jul 5, 2020 at 23:02
  • but still nothing
    – Jessica217
    Jul 5, 2020 at 23:04

1 Answer 1


I have found the solution and its workig 100%

1st step open this file projectName/wp-admin/admin.php


2nd Step in footer of the page insert this code

<style> li a[href="admin.php?page=be-websites"] { display: none !important; } </style>

Enjoy My Solution ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.