Skip to main content

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

:edit: To clarify what I'm trying to do: I need access to form data submitted to options.php so that I can preprocess it into a specific data format. Then, depending on one of the fields, I either ...
Varstraypl's user avatar
0 votes
0 answers
23 views

I am looking to add the URL of each Page in the Add Menu Items section of the Edit Menu area of the administration panel. I'd like to add what the URL is to each page to make it easier when adding ...
zeropsi's user avatar
  • 101
1 vote
1 answer
78 views

There are several good examples and tutorials on how to add an options menu to a plugin. (Many of these seem confusingly old though, but that's another thing, I'm assuming stuff from 15 years ago ...
Ant Ax's user avatar
  • 13
2 votes
5 answers
3k views

Not sure quite when, but a recent WordPress release has added a new WP Admin link under Appearance for Patterns: My themes don't use Gutenberg, and I've disabled it. But the Patterns screen is still ...
doofusb0y's user avatar
1 vote
1 answer
180 views

I am building a plugin with two pages, one will be part of the admin dashboard which is simple enough and will just allow admins to edit some data. The other page should also be only accessible for ...
Michael's user avatar
  • 11
0 votes
1 answer
25 views

How to remove a custom post type from the default wordpress admin menu editor nav-menus.php ? I'm sure this is already talked about but I can't find it in stackexchange.
Angel Hess's user avatar
0 votes
1 answer
263 views

I've added some custom menù pages to my WordPress dashboard using the add_menu_page() function. I need to remove these pages for super admin roles, but the remove_menu_page() seems not working. This ...
OHICT's user avatar
  • 133
0 votes
1 answer
267 views

Using the Wordpress menu system to add an item (product category in my case). I have categories with the same name, under a different parent category, so when i search for the category i want it may ...
John's user avatar
  • 101
0 votes
2 answers
83 views

When you use admin_menu hook to add a navigation item to the Appearances section in the admin menu it will also add that link to the modal that pops up when you click "Theme Details", ...
Kender's user avatar
  • 143
0 votes
1 answer
1k views

I've been trying to get a basic plugin to work and I have followed what seems to be the flow to get the form to post to admin-post.php. However, I only seem to get the white screen of death upon form ...
Yintii.eth's user avatar
1 vote
0 answers
238 views

My menu code: add_action('admin_menu', 'waf_admin_menu'); function waf_admin_menu(){ add_menu_page('WordPress Audio Filter', 'WordPress Audio Filter', WAF_CAPABILITY, 'waf_settings', '...
Toniq's user avatar
  • 455
0 votes
0 answers
55 views

Is it possible to display the default admin sidebar in a custom post type page (frontend view) if user is logged in, as happens for the admin top bar? If is possible, how can I do this? Any hint?
vvave vvave's user avatar
0 votes
1 answer
42 views

I am adding a submenu page as follows: add_submenu_page( $slug, __('Categories','acs'), __('Categories','acs'), $cap, 'edit-tags.php?taxonomy=acs-field-group-category&post_type=acs-field-group' ); ...
Álvaro Franz's user avatar
0 votes
1 answer
469 views

I'm building a plugin that contains a simple editor for a particular file format. This will only be accessible in the admin menu's for the plugin, no frontend access. I've started looking at the ...
Scerno's user avatar
  • 170
0 votes
1 answer
689 views

The post.php screen lists posts vertically in the admin area [and other post types]. Each item's post_title is a hyperlink, directly above some inline choices. Both the title link, and the "Edit&...
John Dee's user avatar
  • 525
0 votes
1 answer
541 views

Even though I have years of software development experience, I am new to WP & PHP development, so please bear with me. After reading through the plugin manual, I started with a WP plugin boiler ...
helgew's user avatar
  • 111
1 vote
0 answers
339 views

When using the ACF, I noticed that the "Select Link" button calls a native modal called "wp-link-wrap". How can I call/access this modal without ACF?
G Chen Sin's user avatar
1 vote
0 answers
482 views

I'm working on this: Create a menu entry in the admin panel name "Products" Have a dozen of custom post types, all as submenus items of my admin menu "Products" entry Allow a role ...
Bardyl's user avatar
  • 111
0 votes
0 answers
629 views

I am creating a custom plugin to add a button to the buttons panel when editing a post or page in the classic editor. I have no trouble adding a button to the panel, but am unsure of the best way to ...
Johnathan's user avatar
0 votes
1 answer
752 views

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="...
Ricky's user avatar
  • 53
1 vote
1 answer
2k views

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 ...
Bradley's user avatar
  • 113
0 votes
1 answer
79 views

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( '...
alexg's user avatar
  • 245
0 votes
1 answer
882 views

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 ...
jave.web's user avatar
  • 517
0 votes
0 answers
221 views

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
user1961395's user avatar
0 votes
0 answers
295 views

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 ...
Naren Verma's user avatar

1
2 3 4 5
13