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
0answers
9 views

Set different custom menu items for different user roles

I have added some custom menu using add-menu_page and it is working perfectly with the default administrator admin bar. But when I log in to different user roles, they are not showing. My question is ...
0
votes
0answers
7 views

Group non-native menus in back-end

Most of the time, extensions add menus in the admin backend. After a while there are too many. Is there a way to group all non-native menus into one?
0
votes
1answer
26 views

Show admin menu and toolbar in admin post page

Is there a way to still show the admin toolbar and/or the main wordpress admin menu in the admin post page?
0
votes
1answer
18 views

Any other way of storing plugin admin data setting

I created a plugin, and used the add_admin_menu() to add some page for users to put their Api keys and secret word. My page content is just a form to collect those data the users puts in, now my ...
0
votes
0answers
6 views

Plugin Menu appears twice in Super Admin

I am buliding a plugin and have different menu options based on different user-role in wp-admin. I have user role as Administrator, Subscriber since lastweek we had migrated to Multisite Admin and we ...
0
votes
0answers
10 views

Is it possible to have a single page on my current wordpress install under a subdomain? So editing the page is still accessed from the main interface?

I don't think multisite is functional for this for a variety of reasons (including small scale of what the subdomain would be fore, interface access, plugins, etc.) I have a single page that I would ...
0
votes
0answers
12 views

How can i redirect click to new admin page not to edit screen in post table

Hi community i create a custom post type "message". The posts are created from front-end by user by filling a form. i want on admin side when admin access this post and click on post title ...
6
votes
4answers
487 views

How to fix the admin menu margin-top bug in WordPress 5.5?

I recently updated a WordPress instance from 5.4 to 5.5 to end up with an annoying margin-top in the admin area, above the menu directly. I deactivated all plugins, switched themes, did some ...
0
votes
0answers
7 views

How to customize the default users page in admin panel?

I'm trying to add a new feature to the admin panel that enables filtering users using specific field. and I'm wondering is it better to add new page with this functionality or to add the functionality ...
0
votes
1answer
12 views

Is there a way to display a custom post type menu item as “users” submenu?

"client" is a custom post type because I have to add several metaboxes. For a better ergonomy on admin side, I would like to add my custom post type "client" as "users" ...
1
vote
0answers
25 views

Show/Hide 'add new user' custom fields in wordpress admin panel by click another field

I have created a custom field in the 'add new user' section using this hook "user_new_form" in the wordpress admin panel. Now I want to show or hide this field on the base of role. Can ...
0
votes
0answers
10 views

add_submenu_page - cannot change slug

I have a problem in my plugin adding a submenu. It works as an administrator user, but if I run as a user who is not admin, it will not work. I am adding my menus as below. add_action( 'admin_menu'...
0
votes
0answers
20 views

add menu page not showing Icon

I have issues with add menu page it doesn't show my custom Icon. class V { function __construct() { add_action('admin_menu',array($this,'add_plugin_menu')); } ...
0
votes
0answers
87 views

Error on clicking 'Screen Options' tab only at Products-related editor screen(s) and for specific user

My client has problems with the Screen Options tab and in general with Javascript (or maybe WPBakery) related parts of the Admin screen. WPBakery-s blue buttons are not displaying to him at all. And ...
0
votes
1answer
23 views

Plugin Admin Menu Boiler Plate

So, I've done a lot of searching around and there doesn't appear to be any form of Boiler Plate for creating Custom Forms, Dropdowns and that kind of thing within a custom Wordpress plugin. Although, ...
0
votes
0answers
32 views

Backend Checkboxes working – but not visual?

first…sorry for my bad English. Since a few months I have a problem with the checkboxes in the wp backend. They are working, but you can´t see that they are activated. (see enclosed picture as an ...
0
votes
2answers
43 views

Removing menus from users other than the administrator

I want to remove some of the menu links from all users except the administrator. How can I do it?
0
votes
0answers
13 views

Update JavaScript by refreshing menu in wordpress customizer

In Wordpress customizer adding or removing a new menu item refreshes that area, removing decorative details that I add with JavaScript in the preview. As seen in the image: Put this code so that ...
0
votes
0answers
15 views

Add helper text in custom-header section in admin

In my custom theme I created a custom header section : add_theme_support( 'custom-header', array( 'video' => true, 'flex-width' => true, 'flex-height' => true, 'width' => ...
0
votes
1answer
30 views

add_menu_page not show link for custom role

I write a custom plugin, with one link for administration purpose. This is my code: add_action('admin_menu', 'tb_instructor_menu'); add_action( 'init', 'aggiungi_ruolo', 11 ); function aggiungi_ruolo(...
2
votes
2answers
74 views

How to allow “Add New” capability of CPT when links to its UI are placed as a submenu?

(Edit: going for the "Student" badge, and wondering if anyone out there could up vote this question?) I answered a question about capabilities, but now I'm in need of help on the subject. And after ...
0
votes
1answer
41 views

How do I code access to the built-in UI of a CPT when it's placed as submenu of another CPT that is protected by role?

I am toying around with WordPress capabilities, and having some difficulty understanding where I am going wrong. Right now, I have an admin menu that appears for all administrators with STUDENTS as a ...
0
votes
1answer
62 views

show badge with count for pending items in custom post type

This code I have is working but I am not sure if it is the right way to do this. Basically when a user adds a record to a custom post type it goes straight to pending and needs an admin to publish it. ...
0
votes
1answer
20 views

Getting post attchment URL to populate a CPT Admin Page Column

Just trying to work out how to get the url of a file attached to a Post and displaying that in the admin page for that CPT. The file is attached to the post via an ACF file upload field called '...
0
votes
0answers
22 views

Redirect from wp-admin back to page

I want when i click on menu button Return to Home i made on wp-admin menu to redirect back to page: My Extra Code: [ 'parentSlug' => 'doesnt-matter', '...
0
votes
0answers
9 views

Change the default page after admin login

When I login as admin, in the admin panel I am redirected to /wp-admin/admin.php?page=wphpuw. How can I set the dashboard as default screen after login e.g. /wp-admin/index.php. Is there some settings ...
0
votes
1answer
15 views

remove duplicate name submenu link from the custom post type

I was wondering what would be the proper way to remove submenu with duplicate name in custom post type in the admin. I tried to use remove_submenu_page() however since its a duplicate it is showing ...
0
votes
0answers
19 views

Include default sub-menus with custom admin menus via `show_in_menu`

We have many custom post types are are looking to tidy WP admin. We are creating a custom menu : function custom_admin_menus() { add_menu_page( 'Group1', 'Group1', '...
0
votes
1answer
31 views

grant multiple roles access to specific admin menu item

I am writing a plugin that offers an admin menu item which only a specific, custom user role ("customrole" in the example) can access. I have implemented this as follows, and it works: function ...
1
vote
1answer
234 views

Add custom admin menu item for pages using a certain template

I am looking to add a new, custom menu item to the WordPress admin sidebar that displays pages that use a certain template. For example: a group of pages uses the template called "Retailer Sendout" (...
0
votes
0answers
16 views

Highlight admin top menu custom item with the same as core menu url

I faced with the following issue: I have core admin menu group - Users (containing "All Users", "Add New" and "Your Profile" items) and custom Top-Level item Couriers, which is just a Users with a ...
1
vote
1answer
290 views

Custom WP_List_Table displays blank rows

I am trying to make a custom WP_List_Table extension to display a custom post type. Here is what the table and the DOM look like. You can see that it is rendering the table rows empty, and no header. ...
0
votes
1answer
64 views

load-{$page hook} and returned parameter

I am using this code to enqueue scripts and styles to wordpress plugin. This works well, but I am wondering is there some parameter available in my_admin_enqueue_scripts function? Because I would like ...
0
votes
1answer
50 views

add_submenu_page returns null

After creating a parent admin menu item, which works fine, I fail to add a submenu page. Trying to var_dump the return value of add_submenu_page() I get 'null'. My functions are: /** * ...
0
votes
1answer
25 views

My Sites link in multisite is incorrect

Within the network admin, the My Sites link, is not linking to the main parent site. Instead, it links to a child site blog. How can I change this link? Is there a way to rebuild WP menu? I haven't a ...
0
votes
2answers
67 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
19 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
15 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.
1
vote
1answer
149 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
19 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
115 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
21 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
13 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
29 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
16 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
222 views

How to design WooCommerce-like admin tabs for plugin settings page?

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
3answers
110 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
40 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
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 // ...

1
2 3 4 5
13