• Resolved jrvcosta

    (@jrvcosta)


    Im trying to clean up the admin-menus for lower-level admins on our website and your plugin seems to be the only one Im having trouble removing.

    Also, from your code I cant figure out what the top level admin-menus slug is.

    So, please give me a remove_menu_page() function call that will remove your plugins entry in the admin menu.

    Thank you in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi Jose,

    you should be able to remove the plugin admin menu with this code:

    
    add_action( 'admin_init', function () {
    	remove_menu_page( 'wp-mail-smtp' );
    } );
    

    Take care!

Viewing 1 replies (of 1 total)
  • The topic ‘Slug for remove_menu_page’ is closed to new replies.