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.

2
votes
1answer
21 views

How to Add a Link to the Drop-Down User Menu in the Admin Bar?

I need to add a link to the drop-down user menu in the admin bar. Is there a hook or function for this?
0
votes
0answers
10 views

Populating state dropdown with default country [closed]

I am trying to add custom field related with city/state content to user info editing page at admin interface. There is already same structure to obtain this as default in multi-level hierarchy, after ...
0
votes
1answer
7 views

Admin account only shows Profile and Dashboard with no activity

I received login credentials from the person that maintains my company's website. When I login, there is virtually no information on it. I can only access the dashboard which has no activity on it. ...
0
votes
1answer
33 views

Disable new Site Health screen safely?

With WP 5.2 now shipping with the "Site Health" page, I'd like to be able to disable this feature -- it shows way too much about the server info. To remove it from the menu I'm using: function ...
0
votes
1answer
16 views

How do I change the tagline input to textarea?

I have had looked around for a while without success. I would like to make the default tagline editor in the Wordpress admin area being rendered as <textarea></textarea> instead of <...
0
votes
0answers
15 views

Placing custom post types as submenu in admin menu and moving additional admin elements around

So, in my custom Wordpress plugin I have two custom post types. My customer wants to have them grouped under one main admin navigation item. I go and create the main admin item using: add_menu_page(...
0
votes
0answers
12 views

Page not adding in admin using admin_menu action

I am trying to add a new page to the admin area: add_action('admin_menu', 'laksh_advert_menu'); function laksh_advert_menu() { add_menu_page( 'Advert', 'Advert', 'edit_posts', ...
0
votes
0answers
11 views

Restrict user to edit only edit a certain menu

I'm using a plugin (User Role Editor) to take care of the user roles. This works fine, except that you can't give a user acces to only a certain menu. I have two menu's in my website. One 'main' menu ...
2
votes
1answer
77 views

How to add Font Awesome 5 icons in WP Admin dashboard menu?

If you are currently using or looking to start using Font Awesome in your theme to get icons for your dashboard menu, but the icons you are wanting to use are in Font Awesome 5 and the version 4 ...
0
votes
0answers
4 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
24 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): ...
1
vote
1answer
33 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
24 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
21 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
20 views

Develop Admin Panel Page

How to develop a Admin Panel Page in WordPress DashBoard like All Posts page ?
0
votes
0answers
59 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
57 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
32 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
28 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
24 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
143 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
19 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
48 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
20 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
119 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
24 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
33 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
28 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
16 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
34 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
51 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
13 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
10 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
62 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
31 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
20 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
35 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
115 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
385 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
19 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 ...