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
332 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
1answer
386 views

Usage of custom post types in a custom admin menu

This question is a little hard to explain but i will try to be as clear as i can: I have a custom theme that i am presently working on, within this theme i have added a top level menu in wp-admin ...
0
votes
1answer
35 views

Admin sidebar customization

My new clients wordpress site does not have plugins, appearance or any of the other default items in the admin sidebar. Can anyone tell me how I get those to appear. The site is being run in a ...
0
votes
2answers
82 views

adding page types in menu

I believe what I am trying to achieve is quite easy but I am failing to grasp what is needed here. I want a section in the admin panel... lets say "page sections" under that, I want to be able to ...
0
votes
2answers
1k views

How can I add/update post meta in a admin menu page?

I wanted to create a plugin to batch manage posts' custom field data. I know I can add post meta by add a meta box in post edit screen and use add_action('save_post','function_to_update_meta') to ...
0
votes
1answer
57 views

Custom page in plugin visible in menu

I'm trying to understand creating custom plugin pages and menus in admin panel, but I get what I don't need. I've got: function my_plugin_add_pages() { add_menu_page(__('Custom quiz', ...
0
votes
2answers
446 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 ...
0
votes
1answer
38 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
158 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
0
votes
2answers
4k 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', ...
0
votes
1answer
465 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, ...
0
votes
1answer
56 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 ...
0
votes
1answer
525 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
297 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 ...
0
votes
1answer
106 views

How to make a function occurs for one time?

I have the following code in the functions.php file in my theme function my_func(){ echo "foo"; } add_action('admin_menu','my_func'); I assume this function "my_func" will be ...
0
votes
1answer
2k views

Add menu page issues (permissions & position)

OK, I have an issue with Sidebar Generator Plugin. This plugin creates subpage called "Sidebars" in WP-Admin. The point is, it is created as a child of "Appearance" page. And I don't want it here, I ...
0
votes
1answer
989 views

Adding custom Field To The Posts Listing

Are there plugins or hooks to editing custom fields just from the posts listing in admin panel?
0
votes
1answer
290 views

Mimicking admin panel menu from wordpress 3.0.1

I have chosen from a variety of menus for my application only one and it was a wordpress 3.0.1 admin panel menu, but I can't get pass the functionality of it. If to be more distinct I can't ...
0
votes
0answers
7 views

Admin sidebar items overlapping in admin panel

Before to report this to wordpress I would like to know if it's just me or it's actually a bug. I noticed also another user that asked on the wordpress forum but he hadn't an answer for that: ...
0
votes
0answers
11 views

How to check an admin submenu already exists?

To check if a menu exists, I use this: if ( isset ( $GLOBALS['admin_page_hooks']['menu-slug'] ) ){} But it doesn't work with submenus. How can I do the same for submenus then? Thank you. EDIT: ...
0
votes
0answers
11 views

Numeric values associated to admin menu bar

I'm customizing my admin left hand menu and am having an issue coming up with some of the numbers. I've even gone through the option of counting as I save out my code to confirm their sorting order ...
0
votes
1answer
12 views

Adding direct link to post editor in admin menu

I'm trying to make a shortcut in navigation that will take user to one certain post. So far I'm using add_action('admin_menu', 'add_custom_menu_position'); function add_custom_menu_position() { ...
0
votes
0answers
11 views

How to get the Latest Menu Options to be displayed in Wordpress Custom Menu

I have donated about 5 plugins to Wordpress. Now my requirement is to show the updated Sub-Menus options (in admin panel) by checking all plugins (by selecting the latest version of the five plugins). ...
0
votes
0answers
12 views

Creating menu not working with OOP Plugin

I am trying to create a test plugin to practice my OOP with WordPress, I am trying to simple add a menu item into the WordPress admin section. When I activate the plugin it should add the menu item ...
0
votes
0answers
7 views

Ensure widget admin js fires in Widgets and Customizer

Doing a long-overdue update of a plugin. I have some JS that loads in the admin side to react when a user changes a select value in the widget options. $('#accordion-panel-widgets, ...
0
votes
0answers
23 views

Dislay Admin Notifications through Ajax

I am writing a plugin that will require its own settings page in the WordPress admin menu settings section. I have done most of it correctly, and I am stuck at one point. I understand that in order ...
0
votes
0answers
19 views

Admin page menu keeps bugging out

I've been having a problem with my WordPress installation on my Debian LEMP VPS. On the WordPress admin page (example.com/wp-admin/index.php) all the items on the left menu bar keep displacing ...
0
votes
0answers
21 views

How to give Editors ability to edit menus but restrict full access to other Appearance menu items?

I typically set clients up as Editors on their site so they can focus on what is most important to them - editing pages and posts. I find however that this removes the Appearance menu and then the ...
0
votes
0answers
9 views

Modifying WooCommerce Admin Menu causes Error in Media Upload

I'm trying to modify the WP-Admin menu for ease of use. I'm using standard code-based modifications utilizing the global $menu variable. global $menu; if( class_exists( 'woocommerce' ) ){ /* This ...
0
votes
0answers
28 views

wp_is_mobile() inside js

I've stumbled upon a issue that i can't fix. I've implemented a autocollapse menu ..all works fine UNTILL i go to mobile version where the wp core's menu bugs out with my menu js code. Basicly i ...
0
votes
1answer
21 views

Renaming post to something else, breaks dashboard if edit_posts is false

I've been changing the name of the "Posts" to something else with the following code: // Change menu labels function xxx_admin_menus() { global $menu; global $submenu; $menu[5][0] = ...
0
votes
0answers
20 views

Dynamic admin submenu

I'm creating a plugin for WordPress with dynamic sub-menu's fetched from the server. Putting the dynamic loading of sub-menu's into the menu_setup() hook function would slow down other WordPress ...
0
votes
0answers
20 views

How to link other page?

I build menu in admin name is "Members". This is code file User.php <?php function User_add_menu(){ add_menu_page( 'User Members', 'Members', 'manage_options', 'user-members', ...
0
votes
0answers
17 views

jQuery.suggest only suggestion is “0”

I'm trying to get suggestions in a text field with data from a database, inside an admin page. The only suggestion I get, no matter what, is always "0".. why? Relevant code parts the ...
0
votes
1answer
60 views

Add logo to admin menu in my plugin

I want to add a simple piece of code: <img src="logo.png"> to the top of the admin menu. I know how to do it if I am just replacing a logo within an already existing class but there is no ...
0
votes
0answers
20 views

Headers already sent error when creating multiple admin menu's

so I am trying t add some admin menu's to a theme file. I have followed the examples and documentation from the codex and almost have things working, but I've run into a little problem when trying to ...
0
votes
2answers
48 views

Is it possible to have dynamic post id # in add_menu_page()?

I use the add_menu_page function in my custom theme builds but when I export my local copy of the site and import it in the production site some of post id numbers change and I have to update this ...
0
votes
1answer
48 views

Multiple custom post types showing up in edit.php

I'm having a bit of trouble (i think) over custom post types in Wordpress. I have created multiple post types and they all work, but there is this one thing which is bothering me. Lets say I have ...
0
votes
0answers
51 views

Fixing admin menu offset

I've encountered a little problem during my plugin development. I've added a search box on all pages and it's working flawless but the only thing that annoys me is that it's causing the menu to ...
0
votes
0answers
17 views

How to make a sortable comment column?

Is there a way to make sortable comment columns? I have managed to create the column and to populate it, but i don't know how to make it sortable. I've found a lot of solution for sortable post ...
0
votes
0answers
15 views

Add a label to main menu (admin)

I want to add labels to the main menu. (For categories for example) Main Navigation (click on this will not do anything) |__ Pages |__ Posts Settings |__ Users |__ Settings etc. If there is ...
0
votes
0answers
42 views

Simple CSS admin pagination

First of all thanks for your time :). I have a dropdown menu option for the admin menu..but the pages still render at the menu edge. Any css trick to position pages correctly? Thanks in advance.
0
votes
1answer
37 views

Hide certain post types from editors

I'm trying to hide a series of posts from my editors in the admin panel based on either custom post type or category (whichever is easiest). I tried adding a function such as: add_action( ...
0
votes
1answer
47 views

WP Admin Bar - Get current theme name as custom menu title

I wish to echo the current theme in text in my WP Admin Bar sub menu. How would I go about display a snippet of PHP inside the 'title' => 'php snippet here', ? ...
0
votes
1answer
268 views

How to create menu in Word Press 4.2.2?

How to create menu in Word Press 4.2.2? I have opened a dashboard and there are no so options visible. How to fix that? I want to make a menu for all pages I`ve created. Thank you.
0
votes
0answers
54 views

Css in admin panel of WP or some other BUG

I'm running WP almost a month now, and after it updated automatically(wtf?) to version 4.2.2 or may be from some other reason, I can't edit my menu from the admin panel. Have a look at the screens ...
0
votes
0answers
16 views

How do I add an arbitrary link to the WordPress Admin Menu?

I am looking to add an arbitrary link to the WordPress Admin Menu. Example: | Dashboard | | Posts | | Media | | Custom Arbitrary Link | The functionality of this acts just like a normal button ...
0
votes
1answer
24 views

Add a description/hint field in the admin page of a plugin

I made a plugin and now I'm making an admin page for it. I know how to properly add a field in an admin page but do you know how I can add an description/hint field like this (grey text)? Thanks
0
votes
2answers
22 views

admin menu naming

how can I change the 1st child name of the admin menu in wp? I have upload a picture, I want to have a different name of the 1st child of the menu and the parent will be the same. this is mycode ...
0
votes
0answers
78 views

How to populate a nav-menus meta box with admin menu items

I have successfully added a new meta box to the Appearance->Menus (/wp-admin/nav-menus.php) page called "Admin Pages". Now I need to populate it the same way the standard "Pages" meta box is, but ...