Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you add a WordPress admin page without adding it to the menu?

Tags:

wordpress

I'm building a WordPress plugin and I'd like to have an edit-item page that can't be reached via the submenu (because then the item wouldn't be specified).

This resource (http://codex.wordpress.org/Adding_Administration_Menus) shows how to associate an admin page with a function, but not how to do so without adding it as a menu item.

Can this be done?

Thanks!

like image 752
Nicky Hajal Avatar asked Oct 11 '10 00:10

Nicky Hajal


People also ask

How do I hide the Admin menu in WordPress?

Hiding the admin bar for a user roleInstall the “Hide Admin Bar Based on the User Roles” plugin and go to Settings → Hide Admin Bar Settings → User Roles. Select the user roles you want to prevent from accessing the WordPress dashboard and save your settings.

Where is the Admin button on WordPress?

The WordPress Toolbar, formerly known as the Admin Bar, is a small bar at the top of your screen that's present both when viewing the live version of your website and when browsing the WordPress admin panel (assuming you're logged in to WordPress).


1 Answers

Best solution here http://wordpress.org/support/topic/add-backend-page-without-menu-item

use add_submenu_page with parent slug = null

like image 168
Christof Coetzee Avatar answered Oct 04 '22 02:10

Christof Coetzee