I think what you’ll want to do is iterate over the $_GLOBALS['menu']
array. This should give you a list of all the items in the admin menu so you know what the hooks are that need to be removed.
There are more details and good information in this answer: https://wordpress.stackexchange.com/a/136064/9080
The appropriate hook/slug can be found in the array element with key 2, according to that answer.
You may also find this tutorial useful Customizing Your WordPress Admin
Related Posts:
- Extension preview disapeared since WP 4.5.2
- Delete Custom Dashboard Widgets
- Editor access to plugin settings
- How to develop a community feature in the dashboard for multiauthor site
- Remove Widgets in Dashboard
- How can I ‘reactivate’ .PHP files within a WP plugin that have been marked ‘inactive’?
- Give editors access to particular plugin – turn “admin.php” into “edit.php”
- Created Widget Not Showing up on Admin Panel
- Dashboard Disappears after Upgrade
- Compatibility with RTL installations
- Dashboard Widget Form
- Frontend editing, Frontend user dashboard
- Can I use a form in a dashboard widget?
- Determine Registered Admin Menus
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- Merging Two menus in the backend into one menu
- How to remove admin main menu name repetition
- How to exclude certain files from the plugin editor?
- Sync User to cPanel webmail?
- How do I add content to the dashboard in WordPress?
- Remove specific plugins and themes from the Dashboard->Updates page [duplicate]
- Login problem after installing my written plugin [closed]
- Allowed memory size exhausted problem
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Changing menu order of a specific plugin in dashboard
- I changed font of wordpress dashboard but it is slow!
- Creating a search form and displaying results
- Displaying URL Based on User Input from a Form W/in a Dashboard Widget
- Widget Screen Locked
- how to render dashboard widgets conditionaly in wordpress admin
- Stopping WordPress’ WYSIWYG Editor from Converting “didn’t” into “didn””””’t”?
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- How can I disable new plugin and theme install, but allow updates?
- Use localized plugin name and description even when the plugin is disabled
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Need help with Task assigning and rewarding as currency which withdrawable
- WordPress Dashboard add user password not working, etc
- How To Remove “All, Publish, Draft and Expired” in Events Dashboard
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- Blank dashboard with no access
- Not able to upload Plugins/ Theme from Admin backend
- Ajax response returns html code instead of user data
- WordPress Dashboard organize posts based on categories
- Remove the ‘Press This’ Tool
- How to create plugin list groups?
- Google adsense stats plugin? [closed]
- Custom Fields on User Dashboard?
- Form with response button after on table after submission
- WordPress Plugin and other pages not opening
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- How can a plugin run a script after being updated in MultiSite?
- File Storage Plugin (For Individual Users)?
- Recommendationf for Quiz Plugin that saves results [closed]
- shortcode doesn’t work
- Will WordPress username displayed somewhere in the site?
- upgrade plugin in wordpress
- Are Drop-ins harmful for wordpress website?
- Is it dangerous to install unupdated plugins?
- Where to hook my plugin’s action
- load_theme_textdomain path
- How to update plugins with database updates if I use svn
- Plugins not showing in Multisite dashboard
- How to create an archive page (with links) for a date range?
- How to add wp visual editor in a custom widget?
- allow photo/video in comments
- Can’t get Gutenberg InspectorControls to work
- Choose which plugin to run based on user?
- Too many login attempts
- How to change the wp_upload_dir() path in plugin
- Can the uniqueness of the plugin file/plugin slug and version number be trusted?
- How can I redirect some pages to new subdomain? [closed]
- merge wordpress plugins
- quicktag breaking FancyBox plugin on my blog’s front page
- Can’t create new CPTs when menu hidden
- Google Appointments in WordPress?
- Navbar affect loading all products
- How to make a Product page without ordering and database
- Codeless random token generation to pass into multiple tracking links in a single page load
- Custom WordPress feed on Apache server returning 304 response for if-modified-since
- RSS Feed on WordPress showing code (hypertext) in articles titles
- WordPress Gutenberg How to make TextControl Required?
- Display a number value from mysql query in WP
- How to deprecate a hook used in a plugin?
- How can I show login popup when user clicks on download button
- Add subemenu option page
- get_permalink is causing a whitescreen
- Adding javascript to header of MetroMagazine theme
- Unable to Retrieve Setting Value for my Plugin
- How to delete user meta by key
- galleria for WordPress not working properly on Mobile devices (responsive)?
- Get plugin versions in xml/json format
- Remove ‘Publish to Facebook’ checkbox for Facebook page publish plugin
- Make a wordpress site similar to Hot Or Not – Image rating system [closed]
- WordPress Code Access to Restricted Content without Registration
- How to pre-set WordPress settings for specific posts?
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- Disable auto-embed feature when pasting links in Gutenberg editor?
- How to add product thumbnail on orders list on backend?
- On WordPress.org Plugin repository, Last Updated Date doesn’t match with Plugin Version Update Date