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.
649 questions
0
votes
0
answers
29
views
How to Processs Form Data sent from Custom Settings Page in Admin Dashboard
: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 ...
0
votes
0
answers
23
views
Is there a filter/action to modify the page details in the Menus administration in the Appearance section in WP Admin?
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 ...
1
vote
1
answer
78
views
adding an options menu that allows saving multiple sets of said options
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 ...
2
votes
5
answers
3k
views
Remove or disable Appearance > Patterns
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 ...
1
vote
1
answer
180
views
How can I have an admin only non-dashboard page in my Wordpress plugin
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 ...
0
votes
1
answer
25
views
Remove custom post type from the auto generated list on the edit menu page Add menu items
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.
0
votes
1
answer
263
views
Remove custom menu pages for admin users
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 ...
0
votes
1
answer
267
views
Wordpress add menu items display slug too
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 ...
0
votes
2
answers
83
views
Adding admin link to Appearance via admin_menu, adds link to theme details modal
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", ...
0
votes
1
answer
1k
views
Submitting form to admin-post.php Wordpress
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 ...
1
vote
0
answers
238
views
admin_enqueue_scripts using hook_suffix vs GET page
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', '...
0
votes
0
answers
55
views
Display admin sidebar into custom post pages if logged
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?
0
votes
1
answer
42
views
Admin submenu issue with PHP not detecting two strings as equal
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' );
...
0
votes
1
answer
469
views
How to make an admin plugin menu page go full screen?
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 ...
0
votes
1
answer
689
views
Change the destination of the URLs in post.php
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&...
0
votes
1
answer
541
views
Unable to get a simple plugin admin page to work
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 ...
1
vote
0
answers
339
views
Calling the "wp-link-wrap" pop-up modal
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?
1
vote
0
answers
482
views
Custom post types as sub menu pages and role capabilities issue
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 ...
0
votes
0
answers
629
views
Creating an admin button that when clicked shows a popup form
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 ...
0
votes
1
answer
752
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="...
1
vote
1
answer
2k
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
1
answer
79
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
1
answer
882
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
0
answers
221
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
0
answers
295
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 ...