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

Possibilities for the edit.php admin panel? [closed]

Here's my scenario: I'm building a Wordpress backend that links two custom post types for an HR department: Job Listings and Applicants. Job Listing posts are created manually by the HR admin. ...
0
votes
1answer
118 views

Moving the WordPress dashboard avatar over the admin menu

Is there any documentation on moving the avatar image to the top of the menu area in the WordPress dashboard?
0
votes
1answer
24 views

add an option to the read page

I want to add an option to the static page in the admin read page. I want to add a Portfolio page option where the user can select a page to set as portfolio page. Google helped me somewhat with ...
1
vote
0answers
23 views

Polylang : Interverting languages after development [closed]

My client asked me to switch French and English after the site was developed. So I did two things: Polylang > Languages: I selected English by default (asterisk on English) Polylang > Settings: I ...
0
votes
1answer
647 views

Admin - Custom Post Type in WooCommerce menu - how to control menu order

I'm using WordPress 4.9.1 and WooCommerce 3.2.6. I have added a new Custom Post Type (Subscriptions) and inserted the menu item under the 'WooCommerce' menu in the admin panel using 'show_in_menu' =&...
0
votes
0answers
127 views

How to display status messages in admin panel

I recently followed the steps here https://codex.wordpress.org/Settings_API in order a create a setting page for my theme. The code works, the data gets saved in the database without any status ...
3
votes
1answer
300 views

renaming an admin menu item with decimal array index number

I am trying to rename a menu item on my administration dashboard. Using the $GLOBALS['menu'], I have found the following array indexes [26.0648] => Array ( [0] => M.E. Calendar ... and [26] ...
0
votes
1answer
29 views

pre-existing data, and entities

I'm new to WordPress, and I would like your opinion about the application I'm building. I have a database filled with a lot of data structured in a very nice and optimized entity design. I'm ...
0
votes
1answer
108 views

admin menu: use default “general” page for theme settings using add_menu_page and add_submenu_page

How can I make my theme settings admin menu showing "general" as default page while keeping its menu title as "theme settings"? I mean at the moment I got this using add_menu_page and ...
0
votes
0answers
101 views

Add Admin Option w/ Anonymous Function

Been working on a method for my Custom Post Type PHP Class to add a submenu page to the Admin Menu for use in the template. The add subpage method is as follows: /** * Adds a sub menu to the ...
0
votes
1answer
431 views

Creating Admin Submenu Page via Class Method

I have a PHP Class I created that handles creation of the custom post type, custom taxonomies, and meta boxes and custom metadata fields. My next step is to add the ability to create subpages under ...
1
vote
1answer
437 views

rewrite custom post type slug in wp admin

I'm developing a site that will eventually have a copy, a separate WP install in another language. I have a few custom post types in this site, some of them with custom slugs for archive page and/or ...
0
votes
1answer
1k views

adding existing menu page on new customer user role

I have created new user role 'Host' . now I am trying to show admin menu item ' user' in it . i have googled some code and tried this $result = add_role( 'Host', __(Host), array( ...
1
vote
0answers
21 views

Manipulate javascript code from custom made admin page menu

I have javascript peace of code that I load into my custom template page. It is quiz application based on pure javascript and I keep the questions with answers inside the array object. The thing is ...
3
votes
2answers
1k views

wp_verify_nonce() why return false?

I was to tried create theme options admin page (without settings API) in this code I'd like to know why wp_verify_nonce return false: main file <?php add_action('admin_menu', '...
0
votes
0answers
253 views

WP_User object behaving strangely when used inside Admin Panel?

I'm building a custom settings page in the WordPress Admin Panel and I'm pulling some data from a WP_User object at one point. I've used this object dozens of times in the actual theme, but in this ...
0
votes
1answer
467 views

Creating custom admin panel pages without making a plugin?

I have some functionality on my site that I'd like the administrators to be able to handle without going directly into the database. I'm thinking that the cleanest way would be to create new pages ...
0
votes
2answers
2k views

meta box on new admin page

I created a new page for the homepage settings of my theme using add_pages_page(). On that page I want to use wp.media to let the user select one or several images from the library (or upload new ones)...
0
votes
1answer
345 views

no themes or editor under appearance menu

I inherited a site which does not have all of the menu items under the appearance menu in the toolbar. Specifically themes (trying to upload a new theme my client purchased) and editor. I have: ...
3
votes
2answers
161 views

custom admin menu with custom filed

i am not so expert on WordPress yet. I want to create custom admin menu section for my project. For example see the attached image marked red area, there i want to add one section name Project under ...
0
votes
1answer
305 views

add menu page in loop menu order

I have a function that creates custom admin menu items from an array of child pages. They seem to get returned in alpha-numeric order. I would like them to get sorted by the page order set in page ...
0
votes
1answer
797 views

How to redirect one admin URL to another when admin page URL has “/admin.php?page=” in it?

The following code (from here, middle section chopped out) allows me to redirect users who land on a certain page in the WP admin to another admin page... function admin_redirects() { global $...
0
votes
0answers
54 views

Which method is more correct for removing WooCommerce Extensions menu item?

Both of these methods remove and restrict access to the WooCommerce "Extensions" menu page in the admin, which is what I want. But which method is more ideal? By removing it (option 1) or by ...
2
votes
0answers
20 views

How do I insert the smaller variant of an image?

I noticed that when I upload an image in my media library, WordPress seems to automatically generate smaller versions of the image: However, I don't know how to access these smaller versions when I ...
1
vote
1answer
78 views

Add Custom Post type menu to another menu in specific location

It is possible to add the menu for a custom post type beneath another menu (in my case a custom one that I have created) but this appears as the first item. How exactly do I move this to a different ...
0
votes
1answer
407 views

Disable flyout (popup) menus in backend

In wp-admin backend, if I hover my mouse over a menu at the left, it popups with submenus. I am absolutely able to click the menu myself, if I want the submenus to show up. So I am searching a way to ...
1
vote
1answer
4k views

How to remove default tag and category options form a custom post type admin menu

In my theme I have added a custom post type and in the admin side the new CPT menu shows default categories and tags above the new CPT categories and tags. Question how do I get rid of the default ...
0
votes
2answers
667 views

Removing custom taxonomies from the admin menu

I have made custom taxonomies that I am using for few different post types: <?php add_action('init', function() { register_post_type('intranet-categories', [ 'labels' => [ ...
0
votes
1answer
107 views

How do I add an options page at the bottom of the list?

I'm working on my first plugin, and I'm using something like this to add a submenu under Settings: add_options_page( 'Page Title', 'Menu Title', 'edit_theme_options', 'my-plugin-menu-...
0
votes
1answer
215 views

Wordpress plugins add parent menu option in admin main right

I need to add a menu item but it is available as a parent item, I am trying it as follows but in the menu option it is shown as the child of the parent item Settings> My plugins name: add_action( '...
0
votes
1answer
1k views

How to override post-new.php with custom template

How can i override post-new.php with my custom template. When i include file or simply redirect i see my template but admin sidebar is missing. I know it is not simple.
0
votes
1answer
26 views

My connecting URL form in html to PHP does not work

as my previous question here maybe miss lead, my code does not work, what am i missing, i write in functions.php then, i call in header.php this is my form in functions.php: <form name="formvideo"...
0
votes
1answer
38 views

How to get value from custom backend menu

So, i have to put this <iframe width="560" height="315" src="https://www.youtube.com/embed/qMSxYtrZS-c" frameborder="0" allowfullscreen></iframe> into header.php line 305 as shows like ...
0
votes
1answer
950 views

WordPress Admin Menu Order for 'admin.php' pages

I'm using following code to change menu order of WordPress admin panel. function reorder_admin_menu( $__return_true ) { return array( 'index.php', // Dashboard 'separator1', // -...
0
votes
1answer
1k views

Remove Theme menu link from Admin Panel

I am trying to remove menu from the admin panel my code works as it removes some pages but i can't remove the following. admin.php?page=ot-theme-options admin.php?page=ot-settings admin.php?page=...
0
votes
1answer
523 views

How to dynamically add the the input text field in widget?

I have made a widget with input fields. I want to make an add more button to dynamically add the input field the first input field is the default. How can I make it is it possible to do that? Here is ...
0
votes
1answer
943 views

Single category's posts list in admin menu

the "authors" in my site should only be allowed to add/edit posts in a single category (i.e.:News). I am preparing the backend for them and I would like to remove the "Posts" menu and show in its ...
0
votes
1answer
29 views

Setting up a page to house certain types of posts

I have recently taken over this company's website operations and I am trying to set up a page to house a certain type of post. The previous webmaster has already done this before but I can't figure ...
3
votes
3answers
19k views

How do I set up a webhook?

I have a simple script that sends Slack messages, runs reports and does other things. I would like this script to run directly based after users purchase something on my site. I do NOT want to build ...
0
votes
3answers
220 views

How can I style my theme admin page?

I made a large-scale research. But there are no anything what I want. I want to style my options page in a static style file. How can I do that? Sources /* *Create A Simple Theme Options Panel *Exit ...
0
votes
1answer
160 views

Multisite - cannot remove specific sub-menu its parent menu. All sub-menus disappear

I am having issue with admin menu in multisite environment. I have a menu called YRC Settings which has two sub-menus, YRC Global Settings (first on the list) and YRC Homepage Settings (second in the ...
0
votes
0answers
475 views

How to remove an item from menu bar's +New menu based on User role

I want to hide / remove a particular menu item from +New menu on admin menu bar based on specific user role. I referred to this post and tried what is suggested here but for me it did not work. I ...
0
votes
2answers
121 views

How to remove a CPT Menu from the Root Admin only

So im currently developing a plugin, this plugin has a new CPT that i would like to exclude its menu from the admin page of the first site. Im using a multi-site installation. The menu has to only be ...
0
votes
1answer
2k views

How to add custom tab page in backend?

I would like to learn about create page and tab in admin panel. Please let me know useful hook and filter list.
0
votes
1answer
204 views

update_option does not work in this scenario - how do I fix?

I am attempting to use update_option to add or update an option. I have created a test below which creates a settings page and when loaded it runs my awd_do_sync function, but the option does not get ...
1
vote
1answer
43 views

White page on custom plugin option submit

I have a plugin I am designing an admin page for, when I hit submit I get a white page with no errors or text of any kind. Here is my code add_action( 'admin_init', 'linc_plugin_settings' ); ...
0
votes
1answer
30 views

How can I POST or GET to the same admin page from which I am POST-ing or GET-ing

I have made a admin page linked to a Settings -> submenu_item. This page looks like this: http://movahon.dev/wp-admin/options-general.php?page=miama-google-recaptcha%2Fmiama-google-recaptcha.php On ...
5
votes
1answer
15k views

How to add custom submenu links in wp-admin menus?

Is it possible to add custom links as submenu on menu that already exist in wp-admin? Like for example, under appearance section like this:
0
votes
1answer
1k views

Use Drag & Drop Functionality from WordPress Admin Area in the Frontend?

I'm building a membership site with a little pseudo-CMS on the frontend that allows users to post music-related items. For this, I would like to give users the ability to order the items by using a ...
0
votes
1answer
46 views

Change menu order of core post-type in UI?

I'd like to move Posts from it's position (5) in the Dashboard Menu. I tried to re-register it with only the menu order, but it no longer displays at all. function reorder_core_post_types() { ...

1 2 3
4
5
13