The admin-menu tag has no wiki summary.
14
votes
3answers
13k 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 ...
11
votes
4answers
3k 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', ...
11
votes
4answers
6k 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 ...
7
votes
5answers
3k views
Is there ANY way to remove comments function and section totally?
I don't want any comment querys to run. I don't wont anything about comments to be shown in wordpress admin area.
Is this possible in any way?
EDIT: Remove all links to the comments from admin bar, ...
7
votes
1answer
1k 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 ...
6
votes
1answer
3k 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', ...
5
votes
5answers
316 views
Add separator to admin submenu
I would like to add a separator to the admin submenu section, NOT in the top level section.
I'm thinking of using javascript and styling to do the job, but I was wondering if there's a more ...
5
votes
3answers
2k views
Add “external” link to admin menu in the backend
Trying to add a link to my admin menu (dashboard/backend) that leads to the frontend of wordpress, so I basically want a link in the menu that takes me to the blog.
I've found a couple of ways to ...
5
votes
1answer
361 views
Modify Admin Bar Link
Starting on line 474 of /wp-includes/admin-bar.php there is a function that is declared as the following:
function wp_admin_bar_new_content_menu( $wp_admin_bar )
What it does it generates the + New ...
5
votes
2answers
1k 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 {
...
4
votes
1answer
83 views
Remove a menu item created by a plugin
I'm trying to remove a menu item and tried several approaches, but have not had any luck. It was created from a FAQ plugin.
If I use this line:
remove_menu_page( 'edit.php?post_type=question' );
...
4
votes
1answer
514 views
Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
I am making a plugin and I have a bunch of different data types that I am creating edit pages for. I'd rather not have to create a separate function to add each one to the admin menus, since they're ...
4
votes
1answer
333 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 ...
3
votes
2answers
675 views
Removing an admin page added by a 3rd party plugin. Gravity forms in this example
I'm trying to hide a help page from editors, added by the gravity forms plugin. I believe I've run into the same issue before with other plugins, so I'd like to know the correct way to do it for 3rd ...
3
votes
1answer
921 views
Is it OK to move admin menu items?
I have a site with eight custom post types. Each is registered with 'menu_position' => 5 (below the Post menu). A side effect of having more than four CPTs is that the Media menu now appears in the ...
3
votes
3answers
9k 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 ...
3
votes
1answer
203 views
How Do I Programmatically Better Organize Custom Post Type Menus?
A project I inherited had a dozen custom post types. Trouble is, they all come off the admin menu sidebar separately. It's not very tidy. Is there a plugin where I can make these subitems of a parent ...
3
votes
3answers
416 views
What's the best method for emptying an option created with the Settings API?
I'm trying to empty an option created with the Settings API and failing.
update_option ( 'my_option', '' ); appears to do nothing, whereas delete_option ( 'my_option' ); destroys the whole option ...
3
votes
2answers
642 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 ...
3
votes
2answers
1k views
3
votes
2answers
216 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', ...
3
votes
1answer
50 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.
...
3
votes
1answer
130 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', ...
3
votes
2answers
676 views
Naming Admin Menus and Submenus
I'm building a plugin that requires its own set of admin pages. I know how to create the top-level link and how to add sub-menus to it. However, what seems to happen is when I create the top-level ...
3
votes
3answers
256 views
How to wrap admin menus and menu headers in additional divs without modifying the WordPress core?
I need to do this to enable advanced styling options via css, the one a class the headers are wrapped in isn't adequate to do the type of styling needed. Thanks!
3
votes
2answers
412 views
How to disable admin flyout menus?
Seriously, I hate flyout menus with a passion, and now they're popping up all over the place in the admin screen. (They are particularly heinous when you use the blue admin theme, because they add a ...
3
votes
2answers
231 views
Theme editor menu item refuses to go away
I've got an action set up on admin_menu to modify it as needed. I successfully removed the themes menu with the following:
remove_submenu_page('themes.php', 'themes.php');
Now I want to get rid of ...
3
votes
4answers
148 views
Add my own button next to “Screen options” and “Help” in the admin
I'd like to add my own button link next to these two. Is this possible?
2
votes
2answers
322 views
Wordpress Admin Tooltip hooks
I want to know if there is a way to use Wordpress Adminitration Tooltips (de gray and blue ones) that are shown one you update your worpdress (3.x). Showing the new features.
Thanks!
2
votes
6answers
1k views
Edit Page or Post from Top Admin Bar
I'd like to be able to edit a Page or Post that I'm on in Wordpress rather than go to the admin panel on left and find the page or post.
I somehow think it used to be there, but when I navigate to a ...
2
votes
2answers
2k 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 = ...
2
votes
2answers
133 views
Unified Approach for Placing Option Pages
Currently, it is up to any plugin's author as to where to put a link to the plugin's option page. I have seen at least the following "solutions":
Plugin list
Dashboard menu
Plugins menu
Appearance ...
2
votes
1answer
62 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
3answers
773 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 ...
2
votes
3answers
211 views
Rename W3 Total Cache admin menu
I'm developing a plugin that I'll install for all my clients to make WordPress slightly easier to use for them. One of the things it will change is name of the W3 Total Cache Admin menu from ...
2
votes
1answer
50 views
How to minimize WP dashboard menu programmatically?
I'd like to programmatically (either with js or php, but I imagine it'd simpler with js) hide the dashboard admin menu using the same functionality that is already built in. All I want is, when the ...
2
votes
1answer
98 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 ...
2
votes
2answers
155 views
How to determin which admin screen/sub screen I'm currently viewing
Edit: The Q narrowed down to the following:
"How would I retrieve the screen IDs of all admin UI screens at one time?"
Edit: I added a bunch of more plugin globals.
Q is the following: ...
2
votes
2answers
639 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 ...
2
votes
1answer
749 views
Remove duplicate main - submenu in admin?
When I use add_menu_page & add_submenu_page to add menu items,
add_menu_page( 'Forms', 'Forms', 'administrator', 'forms', 'forms_job_menupage_cb' );
add_submenu_page( 'forms', 'Job Applications', ...
2
votes
1answer
2k views
How to add another page in appearance tab of admin panel?
Currently I am working on Wordpress and I want to know can I add 1 more page in admin panel appearance menu so that it looks like this: ?
Appearance
Themes
Widgets
Menus
Editor
I want to ...
2
votes
1answer
80 views
Admin menu as submenu from another plugin
I would like to add my new developed plugin's admin menu to an existing plugin as sub menu. Would be possible to do this?
In my first plugin I initilize the menus as follows:
function add_pages() {
...
2
votes
1answer
199 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 ...
2
votes
2answers
143 views
How To Create User Specific Admin User Pages?
The aim is for a proposed site to have customers be able to login and be able to view a private and customer specific ADMIN page NOT frontend page (although this would be much easier to achieve).
...
2
votes
1answer
71 views
check current_theme_supports in admin_menu hook
I'm adding a menu and sub-menus via the admin_menu hook in my functions.php. One of the sub-menus I want to add is menus.
I want to make sure that the theme supports menus before I do that, so I ...
2
votes
3answers
482 views
Change the Default Pages Menu View in wp-admin
I can't seem to figure out how to change the default view for "Pages" in the admin menu.
The initial view is the "Pages" view (/wp-admin/edit.php?post_type=page)
How could it change this to ...
2
votes
2answers
200 views
Custom Theme Want To Remove One Category From All Displays
I created my own custom Wordpress theme for my website, everything is great. However, I have a strange need, I have one category which is kind of a 'placeholder' for content which is automated and ...
2
votes
1answer
124 views
Generate Advanced Custom Fields box in custom admin menu page
I have created an custom admin menu page called FCC Youtube with add_menu_page function
which has some custom fields I manually generated via HTML and PHP:
code ( just the part how I created this ...
2
votes
0answers
108 views
Admin menu bar dropdown opens when I click on a form <select> element (Chrome) [closed]
Whenever I click on a <select> element within a form, it opens not only the relevant dropdown but at the same time the first dropdown menu of the admin menu bar.
It seems to be an issue with ...
