Adds a submenu page in the Admin section of your WordPress website.

learn more… | top users | synonyms

0
votes
2answers
67 views

Include script files for admin submenu page

I created a sub page to "users.php" where I can add a user in a customized way. I used a lot of the code from "user-new.php". However, user-new.php seems to rely on some javascript file to display the ...
0
votes
2answers
343 views

add_submenu_page() link missing 'admin.php?' prefix

I have two plugins - one is the "primary" plugin called "SmartPost" and I'm trying to extend it with another plugin called "SmartPost E-mails". So, in other words, "SmartPost E-mails" extends and ...
0
votes
1answer
29 views

Adding Meta Box to Specific Submenu Page

I've created this page: function wpdocs_register_my_setting() { add_submenu_page( 'edit.php?post_type=task', 'View Tasks', 'View Tasks', 'manage_options', ...
0
votes
1answer
102 views

Adding submenu to custom plugin menu page created with add_menu_page() function

I have created a custom menu page using add_menu_page() function. Everything in that page appears as it should in the screen. What I am trying to achieve is adding another submenu under the under the ...
0
votes
1answer
26 views

plugin admin subpage title and links in menu not highlited at current page

In my custom plugin subapges i want to echo their titles specifed in add_submenu_page() but i don't know how do that. This is part of code of my plugin which display links in left-side menu: ...
0
votes
1answer
58 views

Add Admin menus or submenus depending on conditions

I have two plugins in two different files that add a submenu (the plugin title) to the admin panel like this: Plugin 1: function myplugin1_setup_submenu(){ add_submenu_page("mybrand", "My ...
0
votes
1answer
35 views

Sub Menu content is being duplicated

In the plugin I am developing I am using the following code to build my menu - add_menu_page('BCRM Plugin Settings', 'BCRM', 'administrator', __FILE__, 'bcrm_settings_page', BOOGIE__PLUGIN_URL . ...
0
votes
1answer
111 views

Redirect loop when forwarding to mobile site

I have successfully redirected my page to m.example.com from example.com when i open in mobile environment with this code in functions.php add_action('template_redirect', ...
0
votes
1answer
182 views

Add a Submenu from Another Submenu in a Custom Theme

Good day everyone! I would like some help from you since I'm just a beginner in WordPress. I would like to add a submenu under another submenu like this: International China Independent Group ...
0
votes
1answer
310 views

TGM plugin error in Theme Check Plugin

Errors generated by theme-check plugin and with the code REQUIRED: plugin-activation.php. Themes should use add_theme_page() for adding admin pages. Line 335: add_submenu_page( add_submenu_page( ...
0
votes
1answer
356 views

Wrong current class on admin menu with add_submenu_page()

I'm writing a plugin that displays a post/page list in the admin menu, as a submenu for each post type. Here's the code I've got far: http://pastebin.com/DmUGfzxN The lists are showing and linking ...
0
votes
1answer
31 views

Pricing Tables admin page capability

I'm creating a plugin that will allow to create Pricing Tables in a fast and easy way. But, I'm not sure what rule to use for capability. What would you use? Right now I'm using edit_pages: ...
1
vote
0answers
247 views

Add new button to WP backend menu

I can add a new link under the dashboard menu in the backend of WP function new_link_display() { echo "Echo html code for the page"; } function new_link_page() { if ...
0
votes
0answers
27 views

Menu permalink structure

so I have this problem... it's stupid one, but I can't handle it properly. On my page www.example.com I need to put big menu structure. I want menu to be structured as ...
0
votes
0answers
36 views

Create sub_menu_page in plugin without showing in menu

I've just working on some plugin on our project and I want to do 3 steps form of adding some data. I've got function init_e_menu(){ add_menu_page( 'Form', 'Form', 'manage_options', 'e-form', ...
0
votes
0answers
26 views

How to add a “tabbed” options page in Custom Post Type

does anybody has an idea of how to setup a "tabbed" options page in a custom post type. The options page is already there, done with the simple "add_submenu_page". But as it's getting too many ...
0
votes
0answers
31 views

Saved option shows in page dropdown after page refresh

I'm adding a submenu page with a simple dropdown of pages as a settings, the code looks like this: <?php add_action('admin_menu', 'mytheme_admin_menus'); ...
0
votes
0answers
12 views

Submenu not working with iOS

Submenu is not working with iOS. Can not solve the problem.. Can you help me? http://silviabrosig.com/ -> Menu "WORKS" Tx.
0
votes
0answers
38 views

Adding submenu with standard menu options in WordPress dashboard

How can I create a dropdown menu in the backend of wordpress with the standard links to Add a new custom post and view all custom post types? I know how to add submenus but I want to utilitse the ...
0
votes
0answers
35 views

How to check an admin submenu already exists?

To check if a menu exists, I use this: if ( isset ( $GLOBALS['admin_page_hooks']['menu-slug'] ) ){} But it doesn't work with submenus. How can I do the same for submenus then? Thank you. EDIT: ...
0
votes
0answers
57 views

Metabox on a custom page - How to include the appropriate default scripts and styles?

I have created a metabox on a CPT's submenu page created using add_meta_box. I see the metabox's style is not similar to the other metaboxes available on post edit pages. Moreover, the accordion type ...
0
votes
0answers
55 views

Why is the Page Title missing on Pages added with add_submenu_page?

Adding sub menus is easy with add_submenu_page and is working fine as long if you define a $parent_slug: add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function ...
0
votes
0answers
127 views

Who to echo custom post type on submenu page

i have custom post type and i want to echo the content of it in submenu page like these <?php function codex_custom_init() { $labels = array( 'name' => 'Books', ...