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
0
votes
1answer
3 views

Highlight active Admin Menu when added though add_menu_page

I added a direct link to a page in the admin menu with the add_menu_page function. Once I click on the link, the About page edit screen opens, great. The problem though, i want the About menu item i ...
0
votes
0answers
24 views

Confused where some of these admin menu items came from

I am working on a client's site. I noticed they don't have a Post admin menu item and instead have a Products. I also have a download center and a few other admin menu items. However, when I go ...
0
votes
0answers
11 views

How to block the WP admin menus form loading depending on the current URL?

How can I block the WordPress admin menus and admin bar from loading depending on the URL. So that when a user visits a certain page in the admin area he will only see the wp-content block while the ...
-1
votes
1answer
27 views

Woocommerce like admin tabs and navigation

I'm working on a WooCommerce addon/plugin and created a custom admin sub page under WooCommerce menu in dashboard. Now I am looking to add tabs and sub navigation as per the Settings page under ...
1
vote
2answers
32 views

Bootstrap doesn't work on admin menu page-How to override wp-admin style?

I am building a plugin and i use bootstrap to style it but i notice some components styles don't work properly.Someone suggested in a blog post to use wp_deregister_style('wp-admin'); which did fix ...
0
votes
1answer
17 views

How to sorted Parent Page in WP-admin

I have a question. I want to sort pages by title in Page attributes - Parent page in post in WP-admin ?? Any ideas on how to do this?
0
votes
0answers
11 views

Load admin menu page from plugin class

I'm learning how to create options pages for my plugin. I have found an interesting article on this argument and I'm trying to do the same. I have a doubt about the implementation inside a class. I ...
0
votes
1answer
21 views

Linked pages not working with wordpress

I used this code to create a menu page which loads mypluginpage.php and it works fine with my plugins. I can access it from something like http://mysite/wp-admin/admin.php?page=myplugin <?php // ...
0
votes
0answers
7 views

API Function to use in place of global $menu?

Just wondering... Googling it I cannot find it. I'd like to not depend on globals at all in any circumstance.
0
votes
1answer
13 views

How to move “Collapse Menu” to top of admin bar?

As stated in the title, I try to perpetually move the "Collapse Menu" button which is normally the very last entry in the admin sidebar (backend) to the top. I googled but can't find any working ...
0
votes
0answers
15 views

how add multiple language in wordpress admin menu

How to add multiple language for wordpress admin menu I have added my English menu like this in my theme add_menu_page( "Dashboard Setting", 'Dashboard', 'read', 'user-dashboard', ...
3
votes
1answer
33 views

enqueuing React script and hooking its target div fails to load script

I am getting a silent failure on the below code as I try to enqueue a static React.js script and hook its injecting div into the admin_footer. I see the page and my test echo plus the url of the ...
0
votes
0answers
17 views

Trigger refresh of admin menu

Apologies if this isn't an appropriate question for the forum, I'm new to wordpress development and needed to bring this question to some experts. I've written a plugin that creates custom post types....
0
votes
0answers
16 views

Simplest way to clear specific wp_postmeta value via a button

I have a submenu in the Admin Tools tab that shows a wp_postmeta record that has been used to capture error logs. I want a simple button to clear the record. Should I use javascript and send a REST ...
0
votes
0answers
14 views

remove_submenu_page problems

I am trying to remove a admin menu page added by another plugin. I got the settings I want configured so the page is no longer needed. So to reduce clutter, and to prevent an admin from accidentally ...
0
votes
0answers
15 views

Add custom WP-Admin (backend) menu location

I'm having a WP Multisite for dual language site and I'm a bit sick of the standard menu structure. Everything is mooved apart, such as the options etc.. To solve this a want to create an overview ...
1
vote
0answers
17 views

How to display options page under custom menu?

SOLVED: I managed it to solve by using add_sub_menu I have this code to create an options page. But this shows under the setting( code is from WordPress documentation. I want to display it under my ...
0
votes
1answer
22 views

Remove All in One Pack from the admin bar

Hello I want to remove All in One Pack from the admin bar. I can remove anything else but it. I have already removed other things like update from the admin bar using this method Get the menu's id ...
0
votes
0answers
75 views

Hide admin menu items if it is empty

I have a plugin ( adds a new menu to the admin top bar ) and it works.. There is an option page where the user inputs the menu title into that field (shows as menu item) - then adds the url address in ...
0
votes
0answers
74 views

insert post with wp_insert_post

EDITED: I'm trying to create a post when I submit my form from my custom themes page on the backend function simplyme_portfolio_icon_1() { $options = get_option( '...
0
votes
0answers
36 views

Creating export to CSV function but responding as expected

I have added the following code to function.php to create a CSV download of a PODs Framework PODs with the name solution. For some reason - which I do not understand - the CSV download is not ...
0
votes
0answers
9 views

How can I add plugins submenu at the toolbar on different roles in wordpress?

I want to add a menu at the toolbar of the backend wordpress but the problem is there is submenu on that plugin and also roles in it.
2
votes
1answer
40 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
1answer
167 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
100 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
47 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
22 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
29 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
14 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
299 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
41 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
42 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
35 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
49 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
1answer
138 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
164 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
52 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
36 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
35 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
32 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
144 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
33 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
57 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
21 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
20 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( '...
1
vote
0answers
350 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,...