Usually, plugin and theme authors need to provide access to a settings (options) screen so users can customize how the plugin or theme is used. The best way to present the user with such a screen is to create an administration menu item that allows the user to access that settings screen from all ...

learn more… | top users | synonyms

12
votes
4answers
8k views

Add a Separator to the Admin Menu?

Does anyone know how to add an admin menu separator? I found this but it did not help. http://lab.yukei.net/wp-code/nav.html?wp-admin/menu.php.source.html Any ideas?
11
votes
2answers
2k views

The Great WordPress Admin Menu Challenge of Jan 2011 (a.k.a. How to Resolve Some Challenges when Modifying the WordPress Admin Menu System?)

This question is a bit unique. It is in part a "challenge" I'm issuing to the WordPress team (or anyone else) related to trac tickets: #16048, #16050 and #16204. The Goal The goal is to get around ...
14
votes
5answers
6k views

How do I enqueue styles/scripts on certain /wp-admin pages?

I have two simple functions that load stuff using wp_enqueue_style() and wp_enqueue_script(), something like these: function admin_custom_css() { wp_enqueue_style( 'stylesheet_name', ...
2
votes
3answers
4k views

What is the recommended way to create plugin administration forms?

I have seen and been using the following technique for adding php scripts to my plugin for handling custom forms in a wordpress plugin. from the quizzin plugin: $code_pages = ...
5
votes
2answers
617 views

Getting custom admin submenu item to highlight when its active

I have a custom post type, Jobs, with 3 taxonomies under it in the Admin menu. One of the taxonomies is Status, which is either Active or Closed. I want a menu item under Jobs for Active Jobs. I ...
1
vote
3answers
337 views

Highlighting a Menu Item by Post Name

With the help of a couple of users, my last two questions were highlighting a custom menu item through its ID. Now I'm trying to combine the code of the following two functions to make it work by ...
16
votes
3answers
20k views

Changing Admin Menu Labels

I have spent the last day using the functions.php file to fully customize WordPress for my client sites. I am amazed at how much I have been able to accomplish and how much easier it will make things ...
7
votes
1answer
2k views

Add update notification bubble to admin menu item?

I have re-worded this to make more sense. Ok, I have a plugin that uses a remote service that check for updates, much like default WordPress plugins, in this case it just checks an XML file. I want ...
4
votes
3answers
2k views

How to remove entire admin menu?

I need to customize the admin panel for my user. So how do I remove the entire admin menu? Not remove the menu item, I mean entirely remove the left vertical menu bar, include the design of the menu ...
1
vote
1answer
1k views

Order Admin sub-menu items?

I am adding items to a CPT Admin menu using add_submenu_page which works great, but they are added to the bottom of the sub-menu after the CPT options. I want to be able to have them on top , but I ...
1
vote
1answer
416 views

Associating custom submenu item with post type of top level menu item

I'm working on a plugin that sets admin menu submenu pages on all different post types. I need to be able to associate these new submenu pages with the corresponding post type of the top level menu ...
3
votes
1answer
266 views

Add highlighting to new Admin Dashboard Menu Item

I have implemented a Custom menu item in my wordpress dashboard using the following command in the functions.php function create_menu() { $settings_page = add_menu_page('Edit_Post_69', ...
2
votes
2answers
876 views

Add column to pages table

Hey all i am trying to find the section within the edit.php page where it populates the table with all my current pages. What i want to do is add another colum to the table in order to launch a side ...
1
vote
2answers
5k views

Remove menus and submenus

So I found some handy snippets to help remove admin menu items. However, I'm having trouble with the sub menu items. I want to keep the appearance menu, but get rid of the Themes, Widgets, and Editor. ...
1
vote
1answer
2k views

Current class on admin menu using add_submenu_page()

I am working on creating an administration menu within WordPress for a plugin. I have successfully registered the menu using add_menu_page() and it shows in the sidebar as expected. I have also added ...
0
votes
1answer
215 views

How to remove/hide elements from the admin menu?

I would like to hide Pages and Comments from the editor. I tried to override them with my custom types' menu_position but it doesn't work in WordPress 3.7.1 any more. I found another way: removing ...
0
votes
3answers
586 views

How to prevent parent admin page from appearring as a child admin page

I am using this code: add_menu_page($page_title, $menu_title, $this->capability, $menu_slug, $function); Which is adding top level admin page. When I add: add_submenu_page( $menu_slug, 'sub ...
9
votes
1answer
5k views

Adding Category/Tag/Taxonomy Support to Images/Media

I've been trying to add category, tag, or custom taxonomy support to images (or all media, though I'm only concerned with Images). I've got it part-way figured out with: add_action('init', ...
3
votes
4answers
12k views

Plugin to remove Admin menu items based on user role?

I searched high and low for a plugin that can remove/hide Admin menu items , including custom post types and taxonomies, based on user role. Every one I have tried only does a global hide, not based ...
5
votes
3answers
3k views

Passing arguments to a admin menu page callback?

Situation: I'm working on a plugin and I'm developing it as a class, everything worked fine until I run into this situation. I wanted to make things a bit cleaner and tried this.. class MyPlugin { ...
0
votes
3answers
206 views

How to remove the Plugins Editor from the admin menu

I have the code to remove the editor from the Appearance menu. But I can't find anyway to remove the editor from the Plugins. // Remove Editor from Apperance Menu function remove_editor_menu() { ...
5
votes
1answer
397 views

Put update-like notification bubble on multiple CPTs menus for pending items

Much like how the Plugins or Comments menu items have these number notifications in a bubble for updates and unmoderated comments respectively, I'd like to use that bubble to display the number of ...
5
votes
2answers
3k views

Remove “posts” from admin but show a custom post

After checking out: http://codex.wordpress.org/Function_Reference/remove_menu_page, I successfully use the following code to hide some stuff from the menu: add_action( 'admin_menu', ...
0
votes
2answers
1k views

How do I remove the entire Media section from the main WordPress navigation without just hiding it?

I would like to remove the entire "Media" section from the main WordPress admin navigation ont he left hand side. What I don't want to do is just "hide" it with CSS or a plugin/function like I have ...
0
votes
1answer
494 views

Two Navigation Menus in Themes Produce the same menus?

Alright so I've got two navigation menus that I've registered with my theme: <?php if ( function_exists('register_sidebar') ) register_sidebar(); add_theme_support( 'menus' ); if ( ...
3
votes
3answers
1k views

How to check if an admin (sub)menu already exists?

The title says it all. I'm using WP 3.0.4
3
votes
2answers
815 views

Overwriting Core Wordpress Functions with Plugins

Is there a way to overwrite a core function is the Wordpress core using a plugin? I don't need to inject code, I need to replace the function entirely with a re-written version. The specific function ...
2
votes
1answer
173 views

Add Admin Menu Inside Construct or Init

I thought I was making headway in my WordPress Development education until I ran across the Boilerplate for WordPress plugins and it uses a class object. I'm fine with that and understand those ...
2
votes
1answer
400 views

How to add admin bar and admin menu or submenu notification bubbles?

What would you recommend to use as far as manipulating the admin bar goes? I was thinking to just add a new admin bar node, and with CSS set a background image for the icon. Then in the node, just ...
1
vote
1answer
310 views

How to make a WP admin button/menu similar to Jetpack Notifications?

I would like to add a button to the WP admin toolbar, similar to the Notifications feature released in Jetpack 1.9.1 (I think it was). The notifications icon is displayed beside the account button, to ...
1
vote
3answers
755 views

add logout button on admin side menu

I want to add a logout button on the side admin menu (because I disable the admin bar for the users). So I thought add_menu_page() is the way to do it, but how to add the link to the regarded ...
3
votes
1answer
129 views

How Can I remove or hide the export page in WordPress menu?

I'm trying to remove the export.php page from WordPress admin menu -> tools for a multisite so only the network admin could see it I have the following code so far but can't get it to work. ...
1
vote
1answer
138 views

Master menu item for multiple plugins?

I guess this question is more or less about aesthetics and organization rather than functionality, but I'm curious nonetheless... I know I can add a custom menu item in the dashboard for my plugin ...
1
vote
2answers
1k views

Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page

(Moderator's note: Original title was "Getting error: You do not have sufficient permissions to access this page. Trying to build custom plugin") I'm trying to write my own custom WordPress plugin, ...
0
votes
2answers
63 views

Reference external file as a function

In my functions.php I have the following code: add_action( 'admin_menu', 'jp_create_admin_pages' ); function jp_create_admin_pages() { add_menu_page( 'Members', 'Members', ...
0
votes
2answers
205 views

Remove Menu Page Giving Error

I have a snippet of code I've written in the functions.php file which is simply to remove menu pages if the user cannot activate plugins. It works as intended; however it is showing a PHP error in ...
0
votes
1answer
190 views

Re-ordering Admin Submenu Sections

I was looking at the method below to reorder the Admin Menu Sections: http://wordpress.stackexchange.com/a/1220/1044 ...and was wondering if it's possible to reorder the submenu sections using ...