I follow instruction on this page to remove some admin menus: remove_menu_page()
But is seems it only works on default admin menus. Admin menu added by plugins is not getting removed.
For example, I tried removing admin menu of wordpress seo by yoast using
remove_menu_page( 'admin.php?page=wpseo_dashboard' );
But the menu remains there. All other standard WordPress admin menus were removed except Yoast SEO.
Any idea how can I also remove admin menu of plugins?
I saw some similar questions but the recommended codes doesn't seem to be 3.8.1 compatible so I added this question to start a new fresh question specific to 3.8.1
remove_menu_page
after the page is added. Do you know which hook WP Seo by Yoast is using to add the menu page? When you find it, use same hook with a lower priority.