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
14 views

hide page menu from admin panel for specific users

I want to hide page menu from the admin panel for a specific user type. I tried it with the below codes in functions.php function hide_menu_items() { global $menu; global $current_user; ...
0
votes
0answers
14 views

How can i create custom post type in tab with display my custom page functionalities

We are created custom post type name is vendor with removed the create_post capability because we provided admin can create vendor with user. we already build a create user functionalities with ...
0
votes
0answers
14 views

How i add custom post type menu in add_menu_page(under another admin menu )?

I am making a plugin which has own dashboard and some menu,so i have to create a custom post but i see my post type has own menu option so i want my custom menu in my own plugin menu.
0
votes
1answer
20 views

Dashboard menu missing

I've lost the wp_users and wp_usermeta tables in a wordpress installation. I've recreated them and insert a new admin user. In particular, in wpAA_users (I use the prefix wpAA_), I have now a user ...
0
votes
0answers
16 views

Register custom taxonomy for all post types but list under pages

How I can register one (or more) custom taxonomy listed under "Pages" in the wp-admin menu but to be usable on the all other (registered) custom post types? Here is code what I use: ...
0
votes
0answers
10 views

Is there a way to completely replace the sidebar in the admin panel?

Pretty new at this and was wondering if there is any way of completely replacing the sidebar in the admin panel? I found the hook do_action( '_network_admin_menu' ); but I'm not sure if that is the ...
0
votes
2answers
28 views

What's the correct way of moving a menu page to a submenu

In one of my client sites, the default comment feature is not needed globally. Instead I'm using it only under a certain CPT (eg. Complaints). With the following code, I moved the parent menu item: "...
0
votes
1answer
14 views

Using menu_position to add two entries between Dashboard and Posts

We're looking to add two new (custom post type) entries between Dashboard and Posts. In this project, for the end user, two items are going to be by far the most used items in his dashboard. So we ...
0
votes
1answer
5 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
25 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
13 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
61 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
35 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
20 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
16 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
22 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
16 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
58 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
20 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
23 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
19 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 ...
1
vote
1answer
25 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
84 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
77 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
38 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
2answers
67 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
279 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
122 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
73 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
40 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
40 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
15 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
518 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
5 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
46 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
44 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
37 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
66 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
22 views

Develop Admin Panel Page

How to develop a Admin Panel Page in WordPress DashBoard like All Posts page ?
0
votes
1answer
172 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
10 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
219 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
61 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
40 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 2 3 4 5 12