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
3answers
103 views

How to remove admin menu pages inserted by plugins?

I've got the following code, which cleans up a lot of stuff that is not going to be used within the admin area: add_action( 'admin_menu', 'my_remove_menu_pages' ); function my_remove_menu_pages() { ...
1
vote
2answers
109 views

Admin pages have no content

Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, ...
0
votes
2answers
28 views

Admin menu links just refresh the page

I'm using add_submenu_page() function to add some options to my plugin. On Linux hosting everything works like it should, on Windows hosting those 5 sub-menus have same link somehow and when I click ...
0
votes
2answers
89 views

How to include the admin bar?

I'm working on a plugin which needs a custom Preview page. In this page i call the neccessary wp functions(wp-load.php & wp-admin/includes/admin.php). The problem is, that the admin bar is not ...
0
votes
2answers
149 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 ...
2
votes
1answer
355 views

Updated to version 3.8 and Admin pages are very slow. How to diagnose problem?

I manage a large multi site Wordpress installation with about 300 hundred users and blogs. The server is blocked from making internet requests, so I have defined a proxy service in wp-config.php ( ...
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 ...
0
votes
1answer
31 views

Restricted access for other user roles

I have made some restrictions on other user roles than the administrator. I've made it because I use WooCommerce. I have added the following code to my themes functions.php file, and it works fine. ...
0
votes
1answer
37 views

Issue on CPT Custom Menu Position in WP

I have Two CPT as "Dress" and "Casual" and I would like to position them close to each other exactly after the "Dashboard" in the Menu. I have this code in my custom post type for both: ...
0
votes
1answer
20 views

How to change the default url for 'Posts' link?

I would like to change the default url edit.php to edit.php?category_name=photos when I click on "Articles". Thanks
0
votes
1answer
58 views

How can I reorder admin bar items?

I have a plugin that adds custom admin bar items, but I'd like them to appear all the way to the left. I know I can add and remove menu items with $wp_admin_bar->add_menu() etc, but how can I ...
0
votes
1answer
35 views

How can I modify text in admin bar?

I am looking to change 'register' to 'join' in the wp admin bar for logged out users. How can this be achieved?
0
votes
1answer
45 views

Add internal page to admin menu

i want to put an internal wordpress page (for example Contact page) to the admin panel, in order to dont have to go though Pages->All Pages, is it possible? with the above code it seems that it can ...
0
votes
1answer
39 views

Custom admin menu for a selection of pages

I have a site with 30-35 pages. The customer only needs to edit 3 of them on a regular basis. So to make it simpler and easier for them in the backend, I would like to create a new admin menu item and ...
0
votes
1answer
139 views

Wrong current class on admin menu with add_submenu_page()

I'm writing a plugin that displays a post/page list in the admin menu, as a submenu for each post type. Here's the code I've got far: http://pastebin.com/DmUGfzxN The lists are showing and linking ...
0
votes
1answer
67 views

Adding search box for admin on custom admin page

I have fetched some rows on my custom admin page (using hook for adding admin menus). Now I want to add a search box on that page to display only those rows with the 'title' column containing searched ...
0
votes
1answer
59 views

Settings API - Checkboxes validation in a menu with multiple subpages

I'm building a theme using the settings API. I have a top level menu with multiple subpages and everything is working fine, except checkboxes. I am saving the options to a single options array. This ...
0
votes
1answer
54 views

Is possible to create a custom link that creates a post that's already categorized?

I know this is not really a coding question but here goes. So is it possible to add a link to the WordPress Admin Sidebar that links to a New Post page that is automatically categorized as a category ...
0
votes
1answer
85 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( ...
-1
votes
1answer
87 views

Admin Menu new tab external link

In a clients site i needed to add a menu item under the dashboard, this link is to go to a external url. i managed this with the following code: add_dashboard_page( 'redirecting', 'Docs', 'read', ...
-2
votes
1answer
70 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?
1
vote
0answers
170 views

Admin Menu - Highlight top-level menu when on a sub-menu page (without showing sub-menu)

This is the current situation: I am writing a plugin that has a top-level menu page The plugin also contains other sub-menu pages The sub-menu pages are not assigned a parent slug (thus they do not ...
1
vote
0answers
54 views

What action/filter/function determines “current” class in WP Admin Menu

I have created a submenu page for the Media List Table. The link actually points to a custom view I have created called Resources. I am looking for the correct location where the Admin menu determines ...
0
votes
0answers
48 views

Getting 404 page not found error while trying to access add new plugin / themes

I am getting 404 page not found error while trying to add new plugin or view installed plugin in my admin panel. i am using Hueman theme. every time i tried to use some option of admin panel i am ...
0
votes
0answers
24 views

How can I add an Export option to a WP_List_Table

I have an admin page that extends the WP_List_Table class to generate a table of results from a custom database table. I am trying to add a button that will enable the admin user to export the results ...
0
votes
0answers
24 views

How can I hide any submenu item from dashboard menu but still have access to it from direct url

I just want to hide a page but I want to access it by directly entering its url. But I am unable to access that page after remove_submenu_page() function. I get this error: You do not have sufficient ...
0
votes
0answers
15 views

adding access to a specific post in the wordpress admin left menu

I've added a custom post type on my wordpess called "Perso". here is the code : // Register Custom Post Type function custom_post_type() { $labels = array( 'name' => ...
0
votes
0answers
23 views

Editing Admin via Child Theme

The theme I'm using provides an admin page that lets me easily setup jQuery sliders on my homepage, but it limits me to five. Now I'm able to go into the actual theme files and edit these so that the ...
0
votes
0answers
7 views

User info in the admin sidebar

I think nobody has yet think of this, hope someone can help me. Im trying to add a user info pannel in de admin sidebar, right at the top. Just like the wp-admin-bar-my-account in the admin bar, just ...
0
votes
0answers
13 views

Granting Author the capability to access a submenu item under Tools

I need the Author role to have the capability to access a submenu item (a third party plugin item) under the Tools menu in the admin. By default WordPress grants capability to the Tools menu for only ...
0
votes
0answers
17 views

Adding a function-based search to the Users admin page

On the Users admin page, I want to add a function-based search criterion. By default, there are filters to search by user role and there is a search box that searches the user data. I would like to ...
0
votes
0answers
34 views

WordPress Admin Bar Not Displaying Both Custom Drop-down Menus

I'm having trouble displaying two custom drop-down menus in the WP admin bar. What I want is the first drop-down to display the back-end (editing part) links of every page and the other to display the ...
0
votes
0answers
48 views

Removing “Sub-menus” from My Sites Drop-down in Admin Bar

How does one remove the "sub-menu" that appears to the right of each site listed in the My Sites drop down from the admin bar? That is, I want to have a list of My Sites without the Dashboard/New ...
0
votes
0answers
61 views

Appearance->Editor not visible

I'm noticing that the editor is not visible from past few weeks. It's working fine on my other WordPress sites but in one site it's not visible. I tried changing theme and deactivating plugins but ...
0
votes
0answers
14 views

Navbar list items changing place

I am using wp-bootstrap-navwalker to create easy menus with Twitter Bootstrap. Everything works fine when setting menu up and everything is displayed. But when I enter the pages on the site the ...
0
votes
0answers
38 views

Custom Taxonomy Showing in WP Menu

I have 3 taxonomies bundled with my custom post type. I have noticed my custom post type(cpt) and 2 taxonomies won't show in the Wordpress menu system but 1 taxonomy will. Can anyone point me in the ...
0
votes
0answers
75 views

Check with jQuery value of checkbox from custom admin panel

i am trying to create my first admin panel for my theme. I have a simple checkbox which i think is working. Where is this information stored? Is this information stored in the database? How can i ...
0
votes
0answers
36 views

Script not working correctly produce error: An unidentified error has occurred

I am developing a wordpress theme while adding a category from admin panel it doesn't show the category until I refresh the page and when I delete the same, it produces an error: An unidentified error ...
0
votes
0answers
31 views

Unsure how to add simple checkboxes that write to a small table to admin

I've been doing a lot of reading on the add_meta_boxes...but there's so much information that I'm confused about when to use them. I have a little plugin that writes out some checkboxes and then when ...
0
votes
0answers
53 views

menu_order not working with slugs that start with admin.php

I am filtering the menu_order hook (codex link -> http://codex.wordpress.org/Plugin_API/Filter_Reference/menu_order) to change the order of my links in the admin menu. Currently the ordering will not ...
0
votes
0answers
30 views

Plugin menu replaced by another plugin?

Sorry if my title is not clear as i'm not sure what i'm asking. Haven't seen this issue in my searches on the stack-exchange sites. Note I am not the author of either plugin. So the issue I am having ...
0
votes
0answers
120 views

Show custom taxonomies in admin panel under custom post type

I have added a custom post type called "product" to my theme. I have also created a custom taxonomy for this post type called "product_category". In the admin panel, the custom taxonomy shows up ...
0
votes
0answers
58 views

Non WP Rewrite Rule to Admin Screen using plugin

I am creating a plugin that uses the administration screen extensively (adapting a rather complex, MVC program to WordPress for Creative Collaboration). I want do use simple URLs so that when a user ...
0
votes
0answers
55 views

Adding iframe breaking admin bar

I need to add an iframe in my site footer for an opt-in form provided by a CRM. However when I add the iframe the admin bar disappears. <iframe src="..." scrolling="no" frameborder="0" ...
0
votes
0answers
42 views

WordPress Menu Targeting

Okay so I'm building out a plugin that generates a list from the $menu and possibly $submenu. I want to loop through that array and generate that list by the menu_slug, but I cannot seem to figure out ...
0
votes
0answers
93 views

Creating an custom admin page for editing widgets

There is always danger in thinking your almost there... The end Goal: A custom page in the admin menus where i can edit a widget I constructed. Where I am now: I have registered a custom menu I ...
0
votes
0answers
22 views

Dynamically updated css on load

I am creating a theme and now I want to create admin menu, where you can change the look of your page. I want to add an option to change css properties of some objects on the page. When user fills ...
0
votes
0answers
261 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 ...