Remove a menu sub-item

I want to remove a menu sub-item. But i cant’find the right item to delete. It is a plug caled “New User Approve”. And the slug is :/wp-admin/users.php?page=new-user-approve-admin

I don’t want to disable the plugin and the functions, just the sub-menu item.

I don’t come further than:

   add_action( 'admin_menu', 'remove_admin_menus' );

add_action( ‘admin_menu’, ‘remove_admin_submenus’ );

//Remove top level admin menus
function remove_admin_menus() {


//Remove sub level admin menus
function remove_admin_submenus() {
remove_submenu_page( ‘users.php’, ‘users.php?page=new-user-approve-admin’ );



function remove_submenu() {

remove_submenu_page( 'users.php', 'users.php?page=new-user-approve-admin' );


add_action( ‘admin_menu’, ‘remove_submenu’, 999 );

Read more here: Remove a menu sub-item

Leave a Reply

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