The admin-menu tag has no wiki summary.
3
votes
4answers
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 ...
0
votes
0answers
14 views
Collapsible Menus in Admin Area Appearance > Menus
Is there a plug-in that will allow for collapsing menu hierarchy of sub-menus in the admin > appearance > menus tab?
This is the question asked on this link;
...
0
votes
1answer
37 views
How to re-enable the links manager?
There is no links manager in the admin_menu of Wordpress 3.5.1 anymore. I'm creating a custom add_links_page, and I'm having a hard time with the making a plugin.
Do I need to initialize something to ...
0
votes
1answer
34 views
Reorder plugin items in the admin menu
Is it possible to reorder plugin menu items and custom admin items in the Admin menu without modifying the position in the plugin itself?
I've tried using the method described here "Changing the Menu ...
5
votes
5answers
186 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?
0
votes
1answer
36 views
Responsive Admin Themes
I was looking at this example of an admin theme (http://themepixels.com/main/themes/demo/webpage/shamcey/dashboard.html). As for the Left Admin bar labeled "Navigation," Is there a way to achieve this ...
2
votes
1answer
222 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 ...
-1
votes
0answers
58 views
Remove Menu Item for users other than admin in Woocommerce
I want to remove a few menu items from the Products tab of Woocommerce when anyone below the level of an admin is logged in. Specifically, I would like to remove the categories, tags, shipping ...
0
votes
0answers
32 views
Remove menu items from wp-admin but they come back? [closed]
I am trying to hide some menu items for contributors. So i use
function my_remove_menu_pages() {
remove_menu_page('link-manager.php');
remove_menu_page('themes.php');
...
1
vote
1answer
32 views
Change position of media in admin menu
Is it possible to set the position of an item in the admin menu? I'm trying to move the media link under my custom post types. I know that the media link is position 10. Is it possible to set it to ...
0
votes
1answer
44 views
Trying to add script to specific admin page is not working
What I am trying to achieve is to load a .js file on an edit.php page, however the code is not working specifically for this page. I've applied the same code type of code to other CPT pages, but for ...
0
votes
1answer
25 views
Delete option doesn't appear for plugins
On the Plugins screen I have options to activate and deactivate plugins, but I no longer have the "Delete" option. I'm relatively sure the option appeared earlier.
Also, when I hover over "Plugins" ...
2
votes
1answer
56 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 ...
7
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', ...
1
vote
2answers
38 views
Admin Menus - Name Menu different from first Submenu [duplicate]
I am creating a submenu with the following code:
add_action( 'admin_menu', 'jp_create_admin_pages' );
function jp_create_admin_pages()
{
add_menu_page(
'Members',
'Members',
...
0
votes
2answers
41 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',
...
11
votes
4answers
7k 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?
1
vote
1answer
72 views
Add post-new.php?post_cat=catslug to admin menu
I made it possible to use post-new.php?post_cat=catslug in the wordpress admin for creating a new post with a pre-filled category by using the answer here:
How to add category to: ...
1
vote
2answers
161 views
Hide widgets/plugins from dashboard
I have two plugins in the dashboard, SEO Wordpress and Custom Content Type Manager, and for security reasons I want to hide these from dashboard. How to do that?
I tried to hide the SEO Wordpress ...
1
vote
3answers
100 views
place a direct link to custom-stylesheet, under appearance menu in wp-admin
FINAL UPDATE: Updated code from @birgire solved my issue. If you are facing a similar issue, please read the accepted answer.
ORIGINAL QUESTION IN DETAIL:
Currently under the appearance menu in ...
0
votes
1answer
38 views
Conflict between Capabilities and Menu Visibility with Custom Post Types
I hope this isn't just the result of typo on my end, but if it is, I'm not seeing it.
I'm adding a custom post type to my site. Actually I'm adding three. Two of them I'm trying to set custom ...
0
votes
1answer
41 views
Edit specific nodes in WP_Admin_Bar
Is it easily possible to edit links in the WP_Admin_Bar global $wp_admin_bar instance?
4
votes
1answer
95 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' );
...
0
votes
0answers
77 views
Call to undefined function add_menu_page() on theme activation
I am attempting to activate a theme that works perfectly on one WordPress install. I have matched the plugins installed up and copied the theme over but when I go to activate it I get...
Fatal ...
2
votes
1answer
119 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 ...
1
vote
1answer
73 views
Modify custom Users Manage page
I'm trying to create a submenu page under 'Users' which is like the 'All Users' page but for listing users of specific roles only. Let's just call this submenu page 'Customer'.
So far I managed to ...
0
votes
1answer
39 views
How to add custom post type under option page
Anybody please help me to figure out how to add custom post type in Settings menu (option_page). Basically it is easy for custom admin menu by using:
'show_in_menu' => 'menu-slug'
but i like to ...
2
votes
1answer
86 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 ...
0
votes
1answer
40 views
Function Reference for custom link in Admin Menu Management Page
What is the function reference for the text within the URL field in the Admin Menu page?
I have a PHP function that is utilizing the_content function reference to look for specific file paths and ...
2
votes
1answer
98 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() {
...
0
votes
1answer
59 views
What's causing this error? “Warning: Invalid argument”
I noticed today that my error logs are littered with this information. I'm not quite sure what's causing it. Has anyone seen this before?
[Mon Mar 25 17:24:23 2013] [error] [client] PHP Warning: ...
16
votes
3answers
14k 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 ...
1
vote
1answer
265 views
Adding a custom admin page
I want to add a page of content (a readme file) in the WordPress admin, I can't seem to find how to do this in the codex - can anyone point me in the right direction? It will literally just be a ...
0
votes
1answer
750 views
Admin top level menu, pointing to an external url
I want to create a entirely new top level menu in the admin menu section, and have that be an external link, is this even possible with the current system?
The solution that t31os provides in this ...
-2
votes
1answer
43 views
Show the content of Admin menu to a page
I have created a new page and want to show the content of a Admin Menu in that new page.
How can I do it?
0
votes
1answer
83 views
Restrict certain actions to plugin-specific admin menu pages only
I'm working on a plugin and want to restrict some things to my plugin-specific admin menu pages only. Therefore, I write the slugs being returned when adding (sub)menu pages into an array so I can ...
0
votes
2answers
42 views
Remove the theme info from main dashboard screen- not appearance
I've successfully used the code from the post:
Restrict ADMIN menu items based on username, replace username with an actual user's name.
The problem is the theme still shows on the main dashboard and ...
5
votes
5answers
429 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 ...
2
votes
1answer
208 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 ...
0
votes
2answers
74 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
51 views
remove_menu_page breaks “Add media”
Using the the remove_menu_page function results in a really strange bug. By adding the code below in the functions.php file the integrated "Add media" widget starts to bug.
function ...
1
vote
2answers
1k views
How do I fix this error: Warning: invalid argument supplied for foreach()?
I recently moved a wordpress install from my local instance to a dev server. For the move, I installed a clean version of wordpress 3.4, moved exact duplicates of the file structre, and used the ...
0
votes
1answer
58 views
Grant access to admin menu?
I'm trying to grant the user role 'editor' to have access to the Users top-level menu, and then control which sub-menus they have access to. The add_action lives in the _construct method.
add_action( ...
3
votes
3answers
259 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
1answer
56 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.
...
0
votes
1answer
114 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 ...
0
votes
1answer
52 views
Silently register plugin pages
I am developing one of my first plugins, and have come across a error:
You do not have sufficient permissions to access this page
The plugin has a wizard that uses several forms, obviously I ...
0
votes
1answer
60 views
Making Comments, a sub_menu in admin menu
I know this may be a bit crazy, and hopefully there's a way of doing this with out chopping up the core.
I am trying to clean up my Wordpress admin menu's and in doing such I'd like to move Comments ...
2
votes
2answers
166 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: ...
-1
votes
1answer
120 views
Hidden page wp-admin [closed]
I have now updated the code and added this
remove_submenu_page( $menu_slug, $submenu_slug )
function so the page can be accessed even when hidden.
function ccms_developer_theme_menu() {
...

