I think you can do a simple trick like this:
- Create an administration page, just like normally using
add_menu
hook with default or low priority - Hook to
admin_menu
with higher priority and remove that admin menu item (or you can use a plugin like Hide Admin Menu to do that)
Removing admin menu after creating doesn’t block you from accessing that page, it just hide the item in the menu, meaning if other people don’t know the page slug (which you can make it unique and hard to guess) they can’t access the page.
Related Posts:
- How to put placeholder text in the main post input area?
- Add a page in admin without adding menu item
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Creating a table in the admin-style?
- body_class hook for admin pages
- Passing arguments to a admin menu page callback?
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Change admin language based on user (in single-site)
- What is the real intention for admin-post.php?
- Admin settings update updating every time home page is hit?
- What’s the best method for emptying an option created with the Settings API?
- What is the recommended way to create plugin administration forms?
- Admin config screen without menu
- Make Categories and Tags required in admin
- How to add a new plugin page under desired Options page?
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- How to add HTML / Form to an Admin Bar Menu
- Overwriting Core WordPress Functions with Plugins
- Error with Custom Admin Screen in iframe Thickbox
- why don’t I get error messages in admin when developing?
- Naming Admin Menus and Submenus
- WP_Error handles errors, but how can I show success with a message?
- Current class on admin menu using add_submenu_page()
- Add Admin Menu Inside Construct or Init
- Hook event for upload image in the menu
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- add_menu_page() with function inside a class [duplicate]
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- JS / JQuery form validation in backend admin menus
- Unified Approach for Placing Option Pages
- Plugin with specific admin menu icon
- Is it possible to modify the media library admin screen?
- What does $_registered_pages do?
- Get user id for delete and update selected user
- Add tab to profile.php wordpress plugin development
- WordPress Ajax callback function from plugin – OOP
- OOP Plugin and Menu – Call to undefined function register_setting()
- Admin auto-refresh is interfering with Firebug — how to prevent it?
- Including a JS source with an admin page
- WordPress not working on localhost
- maintaing consistent layout wordpress dashboard
- Add column and post filter for a custom post type field on the edit.php page
- Is there no admin ui guide for 4.x?
- Global State During an Admin Post
- Howto: Use Custom Post Types as Submenu Items in Admin
- Sub Menu content is being duplicated
- Correct check for any admin page with editor
- Adding (blog-specific) links to “My Sites” admin page
- Change the look and feel of admin pages
- Admin Plugin POST to another file within the plugin
- Set different custom menu items for different user roles
- Show/Hide ‘add new user’ custom fields in wordpress admin panel by click another field
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- is it recommended to use WP_List_Table?
- Plugin sub-menu pages recommended structure and links
- Admin – Handle data before creating or updating a post, page or custom post
- How can I replace content in the WP Admin area before an admin page is rendered?
- Creating Admin Plugin – Content of a page is displayed at global scope as well
- Including comments meta box on a plugin page
- How to Move the Comments Bubble to the Right Side of the Toolbar
- Does admin_print_scripts-$hook_suffix work for nested paths to individual files?
- Use ‘get’ form action within a WordPress plugin admin page
- Silently register plugin pages
- WordPress theme options Menu
- Print Dashboard submenu name and filename
- How to group navigation items in the admin panel
- I am trying to make a page in the admin section similar to the appearance of the Profile page for users
- creating a plug in that would tap into save/update action of posts [closed]
- Unable to get a simple plugin admin page to work
- Does is_admin() really provide a plugin performance improvement?
- in_array function Problem
- Best practice for plugin: always detect admin-ajax call?
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Use options to control jQuery plugin
- Restrict certain actions to plugin-specific admin menu pages only
- using admin functions on frontend
- Pause plugin option page until all data manipulation is complete
- How to add text editor in plugin menu?
- How to make an admin plugin menu page go full screen?
- Google Web Core Vitals – management, how to in wordpress and advice
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- How to add admin.php to WP Admin Menu Link
- How to create plugin settings page for each admin user?
- Convert each new line in the textfield as a new value in an array
- How to return a blank page
- How put the correct URL to sub-menu plugin?
- Adding admin for specific users
- Developing a plugin where users can edit entries saved in database
- How do I control the list of Pages an author can see?
- Add a description/hint field in the admin page of a plugin
- What happens when you create/edit a menu
- Forcing ALL plugin Admin menus into a separate menu
- Link to a admin submenu item using a custom link
- Plugin admin list pages as submenu
- Change Admin menu placement using hooks
- loop and in admin header problem
- Menu_slug used for creating options page
- modify buddpress adminbar only in admin pages
- How to design WooCommerce-like admin tabs for plugin settings page?
- Show Admin Menu