Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [admin-menu]

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 the Administration Screens.

0
votes
0answers
3 views

Custom sortable columns not clickable [duplicate]

I have attached several custom columns to the WP users which are displayed in the admin Users list. I have made the columns sortable in that I've set up the ordebry and order GET params to filter by ...
0
votes
0answers
22 views

How can I override a plugin's submenu page and keep the same slugs?

I have a plugin and would like to change the callback function of an admin submenu page so that I can change the output. This is what I have so far (in a child-theme's functions.php file): ...
0
votes
0answers
23 views

is it recommended to use WP_List_Table?

At moment i am developing a Wordpress-Plugin where I have to print a custom table in the admin-menu. After a short research I found the solution with WP_List_Table. But on the Class Reference from ...
0
votes
0answers
18 views

can i add admin menu for set query category id?

I am thinking of something.that i want to add a wordpress admin menu for set category id. i mean i designed news section that lists post from specific category. like this: Sports News Post from ...
0
votes
0answers
11 views

How to show custom post type only within network admin dashboard

I am developing a multisite plugin. So I need a custom post type to manage few things within the plugin. I would like to use the inbuilt custom post type feature of WP. But the issue here is, we can ...
-1
votes
1answer
25 views

Custom access given to Admin dashboard

In my site I like to give admin dashboard access to Staff members,But in some custom ares should be denied.For example Like blue color area can be access but red color area should be denied. How can ...
0
votes
1answer
17 views

Develop Admin Panel Page

How to develop a Admin Panel Page in WordPress DashBoard like All Posts page ?
0
votes
0answers
14 views

wrapping 'rest_api_init' in 'is_admin()' function

i'm create custom admin page via add_menu_page, let's imagine that my custom page has url wp-admin/admin.php?page=settings_page then i'm checki is_admin() function via var_dump on my ...
0
votes
0answers
9 views

Admin dashboard Issue Or VPS issue?

So this problem occur everywhere in my Admin dashboard now. After I edit basically anything(Post/Page/Plugin/Settings/etc), the admin panel is still showing the unedited version. For example, I have ...
0
votes
1answer
41 views

How to add_menu_page include a php file page from theme directory

We can add some file in theme folder but it showing in the admin panel. We can't getting the theme folder file from add_menu_page('Test', 'test', 'manage_options', 'test', 'test.php', null, 6);
0
votes
0answers
24 views

Unexpected token admin.php

when submit a form , it's seems that nothing happen and all i have to troubleshoot are these errors in the console log: Uncaught SyntaxError: Unexpected token < admin.php?page=wprm_importing:...
0
votes
1answer
27 views

How to add admin.php to WP Admin Menu Link

I am trying to add a menu link in wordpress admin navigation bar. I am expecting a link like /wp-admin/admin.php?page=function_name The code I am using is add_submenu_page( 'nxssnap',__( 'Calendar ...
1
vote
0answers
22 views

How to access $menu variable in custom .PHP file that loads wp-load.php?

I have a file custom.php inside the WP root folder. My goal is to access the GLOBAL $menu variable that stores the admin menu items. In order to do that, I try loading the WordPress environment. <?...
0
votes
0answers
30 views

Plugin admin menu

I have a question currently I am using a table generator plugin, I want to allow users with the editor role to view this plugin menu on wp-admin. I understand manage_options capability ONLY Allows ...
1
vote
1answer
142 views

Plugin sub-menu pages recommended structure and links

Sorry if this has been asked before; I have been looking for a while, but couldn't find anything directly applicable. I am building my first plugin and I am trying to follow the WP best practices. My ...
0
votes
1answer
16 views

Move custom post menu to under plugin admin menu

I have a custom plugin with a set of menus. I also have working a custom post type, but I am not sure how to push the custom post under the plugin's admin menu item. The code for the custom post, ...
0
votes
0answers
47 views

Filter parent_file doesn't working

I am trying to highlight an admin menu option (top level or submenu) but it just doesn't work. The code should be pretty straight forward but it seems that my filter isn't triggered. add_filter('...
0
votes
0answers
19 views

Custom Icon assigned to menu items not working for multi-site networks

I have assign different custom font icon to each menu item using the_title action hook and is working for single site but not working for multi-site networks. Is there any solution for this issue? How ...
0
votes
1answer
19 views

Add a menu item to admin dashboard which isn't a link? [duplicate]

I am trying to add a menu item which is supposed to be a separator which has a height set and divides items in the menu. I haven't managed to create a menu item which isn't a link. add_action( '...
0
votes
0answers
58 views

Wordpress menu not loading in the admin side appearence-> menu tab

Uncaught ReferenceError: columns is not defined load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-draggable,...
0
votes
1answer
23 views

How to create editable menu with parent and child in wordpress?

I have created a admin menu in wordpress, and it is a main menu, I do have one parent page and also associated with that there are some child pages. I want to get the images of that child pages needs ...
0
votes
2answers
23 views

How to display Custom Taxonomy under Custom Admin Menu?

I have problem to display custom taxonomy under custom admin menu. Custom post types are displayed properly, but the taxonomy doesn't appear. I added to custom post types: 'show_in_menu' => 'my-menu' ...
0
votes
0answers
18 views

Create Admin Menu for Post depending on category of post in Wordpress

Creating Admin Menu based on Post Categories not related to post-type I am trying to create a new admin menu with all post functionalities available So I am trying to create a new menu with having a ...
0
votes
1answer
26 views

How to allow suscriber to access specific pages in dashboard?

I want to create some pages in admin dashboard which are also shown to subscribers. Normally subscriber can see dashboard page and profile only. I want to create a page called Orders and show to ...
0
votes
1answer
7 views

Admin menu hilighting wrong item for CPT

I have two admin submenu items for my custom post type, but only the first one, "General Settings", hilights when either submenu page is being viewed. add_submenu_page( 'edit.php?...
0
votes
0answers
15 views

Can we add admin pages in WordPress without creating menus or sub-menus?

I have multiple pages in my plugin, but I want to keep only few sub-menus under my plugin menu. I want to load pages from anchor tabs. For that what I am currently doing is creating hidden sub-menu ...
0
votes
1answer
30 views

require/include php file in add_menu()

I'm creating a custom WP Admin Bar menu item with custom HTML inside the dropdowns. Referring to this: https://codex.wordpress.org/Class_Reference/WP_Admin_Bar/add_menu the HTML i want to use is ...
0
votes
1answer
17 views

Need Help Regarding Menu Magement in admin

We have a very big mega menu around 800 product categories with it, It working fine in frontend but having issue with backend menu manager. The page is not even opening and giving memory exhausted ...
1
vote
1answer
31 views

Add Featured image column into wordpress admin on pages AND posts

I have created a column in my functions.php file to add in a column to see the featured image on posts. However i would like to do this for pages as well, but if i repeat the code replacing posts with ...
0
votes
1answer
12 views

Hide admin menu on update_option

I want to show custom sub menu page, if get_option is true else just hide sub page. My function must do, if input value posted as 1, show sub page else hide sub page. But problem is, when i post 1 ...
0
votes
1answer
9 views

Appearance -> Menus doesn't show

Ony of my colleges started with the implementation of a new theme, I'm trying to add Menus but the option doesn't show. anyone know how to bring that back? thx.
0
votes
1answer
34 views

Change order of custom submenu link in WP Admin?

I've added a custom link to WP Admin under the Users menu, but trouble is I can't seem to get it to display above the default options. Is this possible? My code: // Add sub-menu option to users menu ...
1
vote
1answer
28 views

How To Remove or Hide Appearance->Background from Admin Menu

I have a menu Appearance->Background on WP admin, i want to remove or hide from Editor user. i was try to using public function remove_menu() if( !current_user_can( 'administrator' )){ { if( !...
0
votes
0answers
19 views

Unable to add custom page to Wordpress admin panel

I am trying to add a page to admin panel and following this tutorial here admin-panel.php function add_menu_to_wpadmin(){ add_theme_page( 'Admin Contact Us', 'Subscriber list', 'manage_options', ...
0
votes
0answers
15 views

How to add a checkbox (or extend in any way) to Menu Custom Link metabox?

I'd like to add a checkbox to the Custom Links metabox. User will be able to select true/false. Based on the value, the front end will or will not display data. I've tried extending Walker_Nav_Menu ...
0
votes
1answer
33 views

restrict admin panel sections to users

I have found out how to disable wordpress admin menu items from users other than administratos. What I would like to achieve now is every user can access only his user page (only "Your profile") and ...
0
votes
2answers
68 views

admin-ajax GET response bad request

I don't like to use wordpress, but I'm working on a business client website that want to use it but without the default wp- prefix for files and folders.To find a solution and to try satisfate this ...
0
votes
1answer
31 views

Insert link in sub menu - Admin panel

Hi this is my code. add_menu_page('Titlemenu', 'Titlemenu', 'read', 'a-functions', array(&$this,'namefunctions1')); add_submenu_page('a-functions', 'title1submenu', 'title1submenu', 'read', '...
0
votes
1answer
250 views

Hide Theme options and Customize Admin menu

Under the appearance admin menu, I have customizer added by the theme, and theme options added by a plugin. I'm using this code to hide both menus ( submenu's of Appearance )for ALL admins apart from ...
0
votes
1answer
25 views

Roles see different top menu (nav menu)

I'm new to WordPress but has some knowledge in HTML, CSS and and a little of PHP. I'm trying to make a new menu in "top menu" that will be hidden to users that are not admin, but will appear to admin ...
0
votes
2answers
17 views

Adding menu item to WordPress admin bar for editors to edit one plugin's settings

I installed the Siteimprove plugin to my client's WordPress website and I need to provide editor access to the plugin. Editors by default do not have any access to plugins. I tried to add the ...
1
vote
0answers
21 views

Move 'current-menu-item' class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen

I've created a custom taxonomy called 'venuecategory' that is hidden by design(not attached to a CPT and does not appear in admin menu). When I'm on this taxonomy's admin page ('wp-admin/edit-tags....
0
votes
0answers
14 views

How to fix custom add menu page preventing media library from loading

functions.php require get_parent_theme_file_path( '/inc/option-admin-page.php' ); option-admin-page.php function admin_page(){ add_menu_page('menu page','Option Panel','administrator','...
0
votes
1answer
21 views

Subset of Custom Post Type From Admin Menu Based on Meta Data

I understand I can associate CPTs in submenus like so: Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu However, my question is if I have one CPT, let's say for a ...
1
vote
1answer
40 views

Missing Menus Structure

When I go to update my menu via Appearance → Menus, the "Menu Structure" on the right is completely missing. So I'm unable to update my menu. The Pages section is there, but no "Menu Structure". Has ...
0
votes
0answers
15 views

Is it possible to have “select all” option for a custom column?

I've added some columns via the hook manage_myposttype_posts_columns. Two of the columns are rendered as checkboxes. These are checkbox columns that were added in addition to the standard 'cb' column. ...
0
votes
1answer
52 views

showing posts of an specific category in admin custom menu with style of admin posts section

I made a plugin and with it added a new menu in admin. I want to show posts of a specific category in it with default template of admin posts section with all of its abilities such edit, delete and ......
1
vote
0answers
99 views

Create form on plugin options page that creates submenu pages for that plugin

I've created a plugin that adds an admin menu section that is visible to clients (Client Section) when they login and another that is only available to our staff (Staff Section). Our staff needs to ...
1
vote
2answers
141 views

Theme menu in Admin Panel

I am new in WordPress Development. How can I get Menus in Admin Panel like below ? I am trying to develop a theme. But I couldn't display that.
1
vote
1answer
26 views

Able to edit custom post, but unable to create new custom post when within submenu. What capability is missing?

I'm encountering funny behaviour with a custom post of mine that I'm working with in a plugin of mine. Here are the arguments of the custom post: array( 'label' => [omitted], 'labels' =>...