Stack Exchange Network

Stack Exchange network consists of 174 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
2answers
11 views

Missing options in editor [on hold]

I am trying to edit the menu in the header of a site I am working on and I'm not seeing the appearance or plugins sections in the admin bar. Is this a permissions issue? Any clue why they might be ...
0
votes
2answers
15 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
16 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
22 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
14 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
27 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
15 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
16 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
8 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
20 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
16 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
13 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
31 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
45 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
135 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
24 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
15 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
13 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
0answers
24 views

Adding color picker to a plugin options to change the text color

I have created a simple WordPress plugin that adds some content, So for example the admin would add the following text wrapped inside html elements I defined: <div class="myplugin-content"> ...
0
votes
1answer
19 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
38 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
47 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
70 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
140 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
25 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' =>...
0
votes
0answers
18 views

When would it be best to hook AJAX functions on a back-end page?

I'm setting up my page as follows: add_action( 'admin_menu', [$this, 'addAdminMenu' ], 80 ); And its content: public function addAdminMenu() { $this->hook_suffix = add_theme_page( ...
1
vote
1answer
23 views

Programmatically add existing pages and subpages to Appearance Menu

I have inherited a site with over 600 pages/subpages. I plan to use a plugin to change the way the navigation displays but it requires the pages to be in the Appearance -> Menu in this page: /wp-admin/...
1
vote
1answer
31 views

Add Custom Post Type as top level menu item for a custom page

I am writing a plugin and I have added a custom post type register_post_type( 'my_cpt', $args); I would like to have it linked to the custom admin menu I have created using add_menu_page( 'Page ...
0
votes
0answers
103 views

Max Mega Menu - Change it to alphabetical order

I have a max mega menu plugin on my website. I would like a single dropdown, with 5 columns. I would like to put the menus in alphabetical order, underneath each other, but when i try to move them, ...
1
vote
1answer
20 views

Cannot find an OLD Gravity Form on an OLD Word Press site [closed]

I am not a regular user of Word Press but I have recently been editing some Gravity Forms on our websites that feed data into Salesforce. On the Admin page, there is a tab for "Forms" with subtabs for ...
0
votes
2answers
639 views

Remove Elementor Menu From Wordpress Admin

How to remove elementor from wordpress admin menu. I have tried below option but it didnt work. add_action( 'admin_menu', 'my_remove_menu_pages' ); function my_remove_menu_pages() { ...
1
vote
1answer
42 views

Need Help Figuring Out Admin Menu Hover Styling Class

I am building a plugin that part of it has to do with styling the WordPress Dashboard Admin menu. I have everything all coded and working I am just stuck on this one piece. I need to find the CSS ...
0
votes
0answers
44 views

How to add a notification next to custom admin menu?

I want to show a notification bubble next to a custom menu name on admin dashboard. It's a custom admin menu, And the notification will be showing a custom value from the Database. Something like ...
0
votes
0answers
34 views

Create Wordpress Menu Item Without Linking to a Custom Page

With add_menu_page there is a required option to add a menu slug that leads to a admin page. I wish to create a custom admin item, but not one that links to another page (I have other plans for the ...
0
votes
1answer
44 views

How to add publish/draft button in Admin Post Lists

I try to add publish/draft button in Wordpress Admin Post Lists but it doesn’t work well in a certain situation. Does Not Work New post -> Save as Draft -> Publish using new button in Adomin Post ...
0
votes
0answers
25 views

How can I add a sortable link_updated column to the Link Manager?

In the link manager there is no column for the link_updated field in http://example.com/wp-admin/link-manager.php How can I add this sortable column? I've tried cobbling together something ...
0
votes
0answers
67 views

Move plugin-settings to 'Settings'-menu in the admin

I hate it, when plugins add their own settings like this: It's cluttered and annoying. Can I somehow move them in under 'Settings': I imagined something like, checking if there is a plugin by the ...
0
votes
1answer
8 views

Moving Smush plugin menu position to media submenu and removing it from main menu

I have a dislike of plugins that don't tidy themselves away. Smush is a case in point. Ok, it puts itself at the bottom but really, I'd like to have it as a submenu of Media (or perhaps Tools). `...
0
votes
1answer
47 views

enqueue script during add menu items means before save menu items

I'm extended the Walker_Nav_Menu_Edit class and added some new custom fields based on some jQuery plugins like (wpColorPicker, fonIconPicker, and Select2). I'm called these functions from different js ...
0
votes
1answer
38 views

Plugin - Admin menu page broken url

I'm working on a plugin.I've created a new menu entry inside my functions.php. The basic idea will be to have a default menu which will be the parent of several, small and different plugins. I have ...
1
vote
1answer
655 views

add_menu_page() with function inside a class [duplicate]

I'm an experienced dev, but new to WordPress. I'm following along with a course on udemy and they suggested I encapsulate my plugin functions in a class to help avoid namespace conflicts. However, ...
1
vote
1answer
50 views

Add a background image for Custom Post Type archives page

I have a Custom Post Type "Vacancies". I have successfully created a Sub Menu Item in the admin menu "Background". I would like to show a file upload form to allow the admin the ability to upload a ...
0
votes
1answer
11 views

admin aoolbar add_node() and pulling in my post slug

I have created custom post types that use custom endpoints to load the correct template based upon the content the user is viewing. I created custom Admin Toolbar menu items. $wp_adminbar->...
1
vote
0answers
17 views

Show existing POST categories as items in the sidebar menu [closed]

For a cosmetics site, we have "Post" categories such as Deals, Skin Care, Body Care. All our content is saved as posts, in those categories. So all these posts show in the Posts menu in WP Admin, and ...