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

how to save checkbox data for custom setting?

I am creating one custom setting panel, my codes are function custom_text_field_html(){ $text = get_option( 'homepage_text' ); printf( '<input type="text" id="...
0
votes
0answers
29 views

Custom admin menu items

I'm very new to Wordpress, familiar with CMS though. I am taking over someone else's wordpress website, by comparing with other wordpress, I found this one has some admin menus that the other doesn't ...
0
votes
0answers
12 views

How to select and rearrange blocks for CPT edit page programmatically?

I set up a plugin with a custom post type. Everything works so far regarding functionality, however I would like to change the way the admin page for the CPT looks. register_post_type( '...
0
votes
1answer
17 views

Wordpress Side Menu Admin Panel Default Order numbers List?

Is there a page on the WP documentation someplace that lists the order numbers for the default menu items in the Admin panel on Wordpress? Cannot find anything on line that just gives a clear ...
0
votes
1answer
13 views

add sub_menu to a sub_menu (multiLevel sub_menu) in admin menu in wordpress

I'm looking to add a submenu, to another sub_menu that already exists. In WordPress, there are just 2 levels of admin menu (with functions: add_menu_page and add_submenu_page), my goal is to add ...
0
votes
1answer
19 views

How to align the top of an admin pointer to the target element?

I am trying to create admin pointers for a plugin. First, I'm enqueuing the right assets: wp_enqueue_script( 'jquery' ); wp_enqueue_style( 'wp-pointer' ); wp_enqueue_script( '...
0
votes
0answers
12 views

Capability for showing comments page in admin

I have created a new user role "advertiser" and added some capabilities. Advertiser has access to admin comments page /wp-admin/edit-comments.php and I need to know, which capability set to ...
0
votes
0answers
20 views

Restrict admin pages for specific user role

I have created new user role "advertiser" and added some capabilities: function prefix_add_user_role() { add_role( 'advertiser', 'Advertiser', array( '...
0
votes
1answer
47 views

How to break line / add <br> to ADMIN menu

Disclaimer: This question is not about "frontend" nav menu I am looking for a way how to break line in a menu item label in WP admin sidebar menu, sidereason is that the custom post type ...
0
votes
0answers
19 views

User role and capablities only for 1 plugin

What if i want a user called Marketing only to see the Slimstat plugin? The rest of the admin menu should be invisible for him. (for a external marketing agency that should see our stats but only our ...
0
votes
0answers
25 views

Unable to view theme options

I am restructuring how my WordPress files are organized in order to use Composer along with tracking the theme and child theme in a Github repository. I'm following this guidance for the most part, ...
0
votes
0answers
9 views

Customize Menu Structure Creating a Section Where you can add icons/imgs

Basically i would like to add a section in "menu structure". So, when i access to any page/post i can create (for example) a select with some font-awesome icons class to every single <li&...
0
votes
0answers
27 views

Block access to plugins.php for custom role

So I have a custom role and I'd like to block access to the plugins.php page without using a plugin. I can remove pages from the admin menu with my functions file but not sure how to restrict access
0
votes
0answers
20 views

Multisite Menu Metabox to list all sites in Network for Dynamic Network Site Menuitems

I don't understand why this functionality doesn't exist in Wordpress Multisite TBH. I have this working for Custom Menus and the List of Sites on the Nework is working in a Metabox also. However, I ...
0
votes
1answer
24 views

How to sort by two meta keys in admin area?

I am sorting a custom post on a page by a meta key called Order ordered by DESC followed by a meta key called Sub order ordered by ASC but I can't fathom how to do the same sorting in the WordPress ...
0
votes
0answers
39 views

Hook event for upload image in the menu

I have to add the image in my dropdown. I know I can do this with CSS Classes (optional) but I don't want to do this. I want to add dynamically instead of open the code and change or add it. What I am ...
0
votes
1answer
6 views

Cannot include custom post item within a menu

I'm trying to insert my custom post type within a menu of a theme. This theme actually have a custom post type called st_tours. So when I register my custom post type I do: $args = array( 'labels' ...
0
votes
1answer
38 views

Why WP_Screeen doesn't show all options with admin_body_class

I was trying to add a specific class to the admin section. I created a new top-level menu page and now I want to add a specific class to this top-level menu and its submenu items. What I have tried so ...
0
votes
0answers
24 views

How to add “current” class to admin submenu items?

I have a custom plugin with an options page that is working great. I have set up multiple tabs that include content on each. I have now added each of these tabs as submenu items successfully, but I'm ...
0
votes
0answers
18 views

Custom post type has no pagination in backend

I registered a custom post type like this: function si_recipe_post_type() { $labels = array( 'name' => _x('Recipes', 'Post type general name', 'si-extend'), 'singular_name' =>...
0
votes
0answers
49 views

Show all admin menus in a table

I Made a menu to remove admin menus for people that are not allowed to see it so they don't make changes to the site. But I can't get submenus to display only the main menu's this is the code: &...
0
votes
0answers
18 views

Admin submenu hidden on certain submenu pages

I've created a custom post type from a plugin. Then I added several submenu pages to its submenu list, like this: //categories add_submenu_page('Parent title', 'category_redirect', 'Categories', '...
0
votes
2answers
29 views

Wordpress add page under admin submenu and retaining the active status of the parent submenu page in the menu

I have added a page in the admin menu(pxmag-menu) and a submenu(pxmag-plans). There is another page(pxmag-plans-edit) set under the submenu(pxmag-plans) as the parent page. public function __construct(...
0
votes
1answer
128 views

Add custom fields to specific menus

How do I add custom fields to a specific menu? For example, I have menu "Primary" with ID 13. How do I run the wp_nav_menu_item_custom_fields hook only if ID matches the currently selected ...
0
votes
0answers
40 views

Wordpress Admin Panel Left Sidebar No showing on Post create page

These are two different WordPress sites on post create pages. The first site has left the admin panel. The second admin panel does not have a left sidebar. How can I add the left sidebar on the second ...
0
votes
1answer
10 views

Weird white space in admin area

I have had this weird whitespace appear multiple times on multiple sites. By "appear" I mean, it wasn't there one day, then it was. I am the only admin on these sites, which are in the cloud....
0
votes
0answers
13 views

Admin custom submenu element and current link css

I try to add a link in my woocommerce admin menu, this way manager can go directly to the "processing" orders part I manage to do it with the help of this function i created add_action( '...
0
votes
1answer
10 views

WP components no style

I'm trying to build a plugin menu using wordpress components but it appears all the styles are missing. For ex. the button isn't colored the primary(Blue) in the following sandbox.. https://...
1
vote
0answers
14 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
1answer
576 views

on change form submit variable value not updating

I try to make custom theme option, a switch select option can change $bannerchange value. but i cannot add/update value of $bannerchange, select option inside a form. working fine with submit button ...
0
votes
0answers
8 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
38 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
19 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
24 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
1answer
13 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 ...
8
votes
4answers
2k 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
9 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
20 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
40 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
27 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
30 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
93 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
170 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
1answer
271 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
52 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
22 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
84 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
174 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 ...

1
2 3 4 5
13