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 ...

0
votes
0answers
14 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
11 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
25 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
32 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
28 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
74 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
22 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
15 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
14 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
21 views

My CPT does not appear in admin menu selector

I cannot figure out why some of my Custom Post Types appear correctly on admin menu, while other ones not. I'm talking about the possibility to select a custom post and place it in the nav menu (https:...
0
votes
0answers
11 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
18 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
0answers
30 views

Tweaking custom post attribute sortation

I've set up a custom field called "Priority" for posts in my Wordpress theme. They're basically integer values that the user can set, which are used in operations elsewhere on the site, and are ...
0
votes
1answer
17 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
37 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
14 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
45 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
50 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
136 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
22 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
15 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( ...
0
votes
0answers
136 views

Trying to Add Admin Page to WP Plugin Boilerplate

I'm trying to add an admin page to the WordPress Boilerplate Plugin. I've looked at dozens of articles on the Codex, tutorials, and even this video... However, I have been unable to see an admin page ...
1
vote
1answer
22 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
27 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
81 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
431 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
0answers
20 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
33 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
43 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
24 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
42 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
7 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
30 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 ...
0
votes
1answer
460 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
31 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
16 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
0answers
37 views

Integrate foldable postbox in admin menu page

Currently building settings and documentation page for a theme, I would like to reuse as much as possible default wordpress ui elements. I can't figure out how to have my postbox module folding like ...
0
votes
0answers
20 views

Add Link Under “Pages” in Admin Menu on Left Side & Change URL in “Pages”

I am trying to add an option under the "Pages" option in the Admin panel. This is how it looks now. I want to create a new option directly under "Add New". I was able to figure out how to add an ...
0
votes
1answer
28 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
228 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
0answers
169 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
25 views

Change Author label title in custom post

Hello every body is it possible to change the title in the label of the author selector menu, and change it only in a custom post I've made without touching the standard translations files? I've ...
0
votes
1answer
27 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
136 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() { ...
0
votes
0answers
19 views

How to remove submenu page nav menu items - like primary menu or secondary menu

function wpdocs_adjust_the_wp_menu() { $page = remove_submenu_page( 'themes.php', 'nav-menus.php' ); } add_action( 'admin_menu', 'wpdocs_adjust_the_wp_menu', 999 );
2
votes
1answer
309 views

Remove Pagination in Appearance -> Menus -> Categories

is there a way to remove the Pagination in the Wordpress Menu Editor? I have something like 200 categories in my blog and customising menus seems to be tricky when you have to click through it to ...