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.

Filter by
Sorted by
Tagged with
1
vote
2answers
2k views

Why adding Categories does not auto refresh in Backend while using my custom theme?

If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page ...
2
votes
2answers
2k views

Custom Post Type and taxonomies's labels localization not working

after a few hours serching on the net I decided to ask here my problem. I'm in a multi site environment and I have this custom post type code: $products_labels = array( 'name' =>...
0
votes
2answers
419 views

Removing Admin Bar Node Based on Role

I have a custom role, grocery, that I would like to remove the "new content" (the + New dropdown) node from the top admin bar while this role is logged in. I have the following function but it is ...
1
vote
0answers
49 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
29 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
32 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
52 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
2answers
2k 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
111 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
157 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
1answer
32 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' =>...
1
vote
2answers
154 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.
0
votes
0answers
22 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( ...
4
votes
2answers
3k views

How to re-enable the links manager?

There is no links manager in the admin_menu of Wordpress 3.5.1 anymore. I'm creating a custom add_links_page, and I'm having a hard time with the making a plugin. Do I need to initialize something to ...
29
votes
6answers
30k views

Is there ANY way to remove comments function and section totally?

I don't want any comment querys to run. I don't wont anything about comments to be shown in wordpress admin area. Is this possible in any way? EDIT: Remove all links to the comments from admin bar, ...
2
votes
2answers
692 views

how to only add a top-level admin menu without it creating a sub-level-menu

Here is a the code snippet: add_action( 'admin_menu', 'travel_site' ); function travel_site(){ add_menu_page( 'Travel Site Menu', 'Travel Site', 'manage_options', 'travel-site-menu', '...
8
votes
2answers
14k views

Add an admin page, but don't show it on the admin menu

I have a custom plugin 'Charts' that has it's own menu. In that menu are links to the 3 pages for the plugin - 'Charts', 'Add Chart' and 'Edit Chart'. However, I don't want to display the link to '...
1
vote
1answer
55 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
103 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 ...
3
votes
1answer
13k views

How to add custom submenu links in wp-admin menus?

Is it possible to add custom links as submenu on menu that already exist in wp-admin? Like for example, under appearance section like this:
0
votes
0answers
3k 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 ...
1
vote
1answer
26 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 ...
10
votes
1answer
7k views

How to Add a Third Level Sub Menu to the Wordpress Admin Menu

Is there a function, action or filter that I can use to add a third level drop-down menu to the WordPress admin menu. For instance, right now in the sidebar menu, there is a menu for posts and under ...
0
votes
0answers
142 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
1answer
113 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
42 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
0answers
29 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
1answer
57 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
3answers
2k views

Create dynamic wordrpess blank page

I've created a submenu in wordpress using add_submenu_page: add_submenu_page(null,'Page Title','Page Title','administrator','page-slug','page-callback'); I want to create another page like this with ...
0
votes
1answer
60 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
360 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 ...
33
votes
2answers
50k views

Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu

I currently developing a wordpress plugin that is using two custom post types. What I want to know here: is it possible to add a custom post type menu as another custom post type's sub menu?
2
votes
1answer
3k 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
202 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
18 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
18 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 ...
0
votes
1answer
1k views

how to stop wordpress admin menu from scrolling with page

Ive already answered this question but when I came on here I noticed this question hasnt been asked, but the question is: How do you stop the admin sidebar menu from scrolling with the page?
0
votes
2answers
2k views

'Headers already sent' Error When Redirecting from add_submenu_page() Callback

This is a very common issue, but all the answers I read don't relate to what's happening in my case. I'm writing a custom plugin that reads and writes/updates data to a custom database table (it's ...
0
votes
1answer
49 views

How to have submenus collapsed until they are clicked?

I have couple of main admin menus and sub-menuse underneath them. Main menu1 Sub menu 1 sub menu 2 sub menu 3 Main menu2 Sub menu 1 sub menu 2 sub menu 3 Like ...
0
votes
1answer
1k views

How to use add_submenu_page() for editors?

Currently I load a custom WooCommerce sub menu point in an own plugin like: // Add an additional submenupoint add_action('admin_menu', 'register_mycustom_menupoint'); function ...
0
votes
1answer
550 views

the menu of the network does not display my second website

I have a problem that is not referenced anywhere. In the toolbar, the menu of the network does not display my second website, while it is active and appears in the list of the sites in the network. I ...
0
votes
0answers
663 views

open modal window

I am working on a site where HR employees are managing applicants for jobs. I'm currently trying to add a modal window on a custom admin dashboard that will let a user quickly change an applicant's ...
0
votes
0answers
695 views

Remove menu item dashboard for a unique user

I want to disable access to some pages like "Themes" or "Plugins" for my client (just his ID) and try to do it in the functions.php with this script: EDIT : WORKING CODE : function hide_menu() { ...
1
vote
2answers
660 views

how can i add custom menu in admin panel?

I am trying to learn how to make themes for WordPress now I am unable to find how to make a custom menu in admin panel related to theme option want to show a menu in this admin panel
0
votes
1answer
440 views

add submenu page doesn't display

I can't display the submenu of my menu when creating a plugin (Beginner). Could you please help me to find my error? My plugin is well activated and the menu_page appears well add_action('admin_menu',...
1
vote
1answer
664 views

Ajax in plugin settings page returns 400 Bad Request

I've read a bunch of questions and copied my code from the codex, but still no luck. I get this error message when I hit my submit button: my php functions and JS looks like this: function ...
1
vote
3answers
6k views

How to change admin menu position of “Media”?

I would like to change the priority/menu order of the "Media" admin page. Is there a way to change that via apply_filter? Is there a way to change only "Media" page priority without having to list ...
1
vote
2answers
263 views

Wordpress Remove Submenus

I found an answered question here Remove menus and submenus 2 Answers for my problem but is there a way of changing the code a bit so that it removed the submenus for all Editor roles. not only for ...
3
votes
1answer
2k views

How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?

What would you recommend to use as far as manipulating the admin bar goes? I was thinking to just add a new admin bar node, and with CSS set a background image for the icon. Then in the node, just ...
5
votes
2answers
20k views

Show Custom Taxonomy Inside Custom Menu

I have a custom menu using add_menu_page: add_menu_page('My menu' , 'Some text', 'read', 'nwcm'); Under it, I show a custom post type menu item; // Create the news custom post type ...

1 2 3
4
5
13