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

0
votes
1answer
81 views

How to remove and disable access to General Settings Page including its link

How to remove and disable access to General Settings Page including its link on the Settings Tab and add a new link as General Settings?
0
votes
2answers
276 views

Proper way to create an administration page without adding it to the menu

From what I've seen around the code, you can do this by hooking a function on admin_init, do you stuff and then die(). Is there a better way that follows "WP best practices" I'm missing here? The ...
1
vote
2answers
2k 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
36 views

avoiding the display of certain categories to certain user roles at content entry time

How can I eliminate the "featured" category (and its sub tree ) in the admin panel when the user role is not editors or admins?
0
votes
2answers
65 views

creating a plug in that would tap into save/update action of posts

What's a good plug-in that taps into the update post or save post action that allows admins to enforce rules such as if a user selects a category with the ID 5 then he also has to select at least one ...
0
votes
1answer
116 views

toolbar not visible on pages using front-page template

My profile is set to show the WP toolbar when viewing the site, but on a page using the front-page.php template the toolbar space is reserved but its contents are not visible. What could be the reason ...
0
votes
2answers
49 views

how do I get rid of the links and all the links related menu items on the admin ui?

Since I won't be using the built-in links feature of wordpress, I see no reason in keeping its related menu items on the admin ui causing nothing but clutter. How do I do that?
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
98 views

page not updating with database

I have code which updates the database fine, but the page doesn't update correctly! I have to refresh the page a second time for it to update correctly. Here is the code below ...
1
vote
3answers
756 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 ...
2
votes
1answer
105 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 ...
0
votes
2answers
576 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
643 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
2answers
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
836 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
520 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
119 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
537 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!
5
votes
2answers
619 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
230 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, ...
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', ...
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
180 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
124 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
691 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
384 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
801 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
395 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
197 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
310 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 ...
0
votes
3answers
588 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
999 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
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 ...
0
votes
1answer
462 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
253 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
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() { ...
3
votes
2answers
498 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
113 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
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
3answers
1k 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
841 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 ...
1
vote
5answers
696 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
90 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
5answers
236 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
766 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 ...