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

2
votes
1answer
113 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
2answers
759 views

Is it possible to disable certain user roles from creating tags?

As a site admin, I'd like to have control over things. I'd like to prevent my contributors and authors ( who generate content for me ) from creating new tags. I don't want that tag taxonomy to turn ...
2
votes
3answers
720 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 ...
3
votes
3answers
2k 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 ...
5
votes
2answers
1k 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 ...
2
votes
1answer
614 views

difference between add_object_page and add_menu_page

According to Codex, the add_object_page "essentially does the exact same thing as add_menu_page() in case you're wondering". So.... what is the difference between those two functions?
0
votes
2answers
131 views

How to change a specific admin label

I'm trying to change on the backend from: Appearance -> Header To Appearance -> Logo But the Changing Admin Menu Labels answer didn't help so far. Any new tip? Thanks
2
votes
2answers
618 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!
6
votes
2answers
839 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 ...
0
votes
1answer
248 views

Why does hook priority affects admin menu permission error?

On this answer, there was this final comment For future readers, Roland's issue was a hook priority issue. Changing priority from 10 to 11 fixed it in his case The answer seems already closed, ...
16
votes
5answers
7k 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', ...
0
votes
2answers
3k views

How can I add a menu item to the admin area?

I've used almost all of the Wordpress example code but it still doesn't work. I've put the php file under wp-content/plugins/menuitem/ .The code is simple <?php add_action('admin_menu', ...
1
vote
1answer
186 views

Remove Admin sidebar link

I have a taxonomy link in my admin sidebar i'd like removed from view. Only in the sidebar though, i will still be using the function in the post view, so if that creates problems a simple simple ...
0
votes
1answer
128 views

Turn on again old expandable menu

In the latest WP the admin interface is changed and you have a popup submenu. I really liked the old version better with expandable menu. Is it somehow possible to get that back again for all users?
1
vote
2answers
127 views

Why am I timing out when using the Menu Editor?

I'm using a more or less fresh local install of WP 3.3.1. A few days ago I set up a couple menus (Appearance > Menus) without a hitch. Today I tried creating a new menu and add a page to it, but the ...
0
votes
1answer
795 views

moving an admin submenu item to a top-level position

I'm trying to rearrange my admin menu so I can remove the submenus. Basically I'm starting by removing all submenus that I don't want (for instance the ones under the "home" button, or the ones under ...
0
votes
1answer
414 views

paginate posts on admin page

I've created a plugin that calls a list of posts and grabs external API data. I am using get_posts to grab the list (because I need to feed the array of links into the API query) For whatever reason, ...
1
vote
1answer
896 views

Is there a limit to the number of items that can be added using the Appearance Menus Screen?

I can add up to 17 items to my Menu. As soon as I add one more item by clicking the checkbox for the page that I want to add in the Pages box in the left hand column and save the menu, the item that ...
0
votes
2answers
437 views

How to unset adminmenu completely?

Is there a way to completely remove (unset) the left hand side admin menu? I examined the ozh-admin-drop-down-menu plugin, since it removes the entire admin menu and adds a top menu bar in order to ...
2
votes
2answers
205 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
vote
1answer
330 views

Firebug : Problem with jQuery in WordPress admin panel

I'm trying to make my first plugin and I have a problem with firebug. When I use firebug console in WP Admin Panel doesn´t work correctly. For example when I use the selector $('#wpbody') the console ...
1
vote
3answers
783 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
54 views

Pause plugin option page until all data manipulation is complete

I have an option on my plugin page where I load content into all the posts in the blog. Now this takes some time, esp when there are a log of posts. Now the way is it set up now, when you press ...
1
vote
1answer
148 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 ...
0
votes
1answer
535 views

Custom Post Type / Tab Limit

I've created a site with nine (gulp) custom post types. It's a huge site unsurprisingly. The 9 post types fit on the admin menu but I was wondering if there is a limit to the number of extra post ...
0
votes
1answer
266 views

Add top-level menu pointing to a different custom post type?

I have a situation where I want to add a second custom top-level menu for a custom post type. So, when we have a CPT named "fruits", which registers a top level menu with a label of "Fruits", ...
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. ...
0
votes
3answers
249 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() { ...
3
votes
2answers
551 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 ...
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', ...
0
votes
1answer
114 views

Fatal error when using '#' character as an admin menu link title

When I try to title an admin menu link # or &#35;, I get a fatal error before the admin menu is loaded: Fatal error: Cannot access empty property in ...
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 ...
2
votes
2answers
957 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
3answers
2k views

How to remove the Tools menu item from the WP-Admin menu

Where is function.php is stored and built? I want to remove menu named as tools from mysite from all user like admin and other user's? I Request you please help me out from this problem.Give me the ...
3
votes
2answers
880 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 ...
2
votes
5answers
860 views

how to only have one custom post type post?

Is it possible to limit a CPT to just one? What I'd like to accomplish is creating a CPT called "Home". It will manage any and all elements on the home page. I want to program it so when the user ...
0
votes
1answer
94 views

Display Plugin Panels Outside of Admin Areas

I'm trying to find a way to display the work area content of different plugins on pages/posts/areas aside from the admin backend. For example, how would I display the options panel for a certain ...
5
votes
4answers
260 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?
1
vote
2answers
847 views

Create a admin page in wordpress without admin menus (“wordpress sidebars”)

I'm creating a new page in WordPress admin for a theme. In this new page will be a list of people registered (in a form), but with few details / information. So when a person clicks on something, I ...
0
votes
1answer
434 views

Menu_slug used for creating options page

I am following this page on designing options menus: http://codex.wordpress.org/Administration_Menus What is the significance of the menu_slug ? I ask because when I change this value, the options ...
0
votes
1answer
484 views

How to add text editor in plugin menu?

Can I add a text editor to my plugin menu? So I can let users edit custom css file? Something like /wp-admin/plugin-editor.php but I want users to be able to edit only one file. The custome css file. ...
0
votes
2answers
411 views

Efficiency of wp_options vs a new table

I'm building a WordPress theme framework, that will likely have many options as development progresses. I found a related question: When is it appropriate to create a new table in the WordPress ...
0
votes
2answers
2k 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 ...
4
votes
3answers
480 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 ...
0
votes
2answers
277 views

Show limited menu to admin

I am using the latest wordpress 3.2.1. I would like to let create a new admin to do ONLY this: 1) Manage order to change the order status to (e.g. approve..reject). 2) Able to view user only without ...
2
votes
6answers
3k 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
0answers
120 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 ...
4
votes
1answer
679 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 ...
2
votes
2answers
233 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 ...