Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

add-submenu-page

Error on add_submenu_page() declaration

You have to search for this function. It can be in theme or plugin. Last parameter for this function is an integer which determines where the menu should appear in wp-admin.

Categories debug Tags add-submenu-page, debug

Add a custom submenu under submenu in a Custom WordPress Plugin

Third level in admin menu items is not possible, see this answer. However some plugins use imitation of third level menu. Use css to add left margin/padding to your sub-sub-items to make them look as third level menu. BTW, last parameter of add_submenu_page must bet position, not icon name. Reed function docs.

Categories plugin-development Tags add-submenu-page, hooks, plugin-development

Bootstrap Theme Migrated to WordPress

Bootstrap Theme Migrated to WordPress

Categories menus Tags add-submenu-page, menus, navigation, sub-menu

Two e-commerce in two different folders of the same domain

I would like to know if you have to install wordpress also in the subfolder, so a wordpress installation for each woocommerce plug or can you manage the two online shops even with a single installation? Both options work, either 2 installations of WordPress with WooCommerce installed, or a single installation of WordPress set up … Read more

Categories woocommerce-offtopic Tags add-submenu-page, multisite, woocommerce-offtopic

How to remove empty menu space when creating admin page without menu title using add_submenu_page

How to remove empty menu space when creating admin page without menu title using add_submenu_page

Categories menus Tags add-submenu-page, menus, wp-admin

How to add styles to a submenu page?

One option is to examine the $hook and see, if it matches the parent or any of the child menu page slugs. function load_entry_scripts($hook) { $hook_parts = explode(‘_page_’, $hook); $menu_slug = array_pop($hook_parts); if ( ! in_array( $menu_slug, array(‘my-parent-page-slug’, ‘my-child-page-slug’) ) ) { return; } // add styles && scripts }

Categories plugins Tags add-menu-page, add-submenu-page, plugin-development, plugins, wp-enqueue-style

How to create a custom post-new.php page for plugin , no wp menu

How to create a custom post-new.php page for plugin , no wp menu

Categories plugin-development Tags add-submenu-page, customization, forms, plugin-development, posts

Why won’t this submenu page show? – My First WordPress Plugin

Because the main menu has manage_options but the sub menu has manage-options, it should be _ not -. Since nobody has the manage-options capability nobody can see that submenu page.

Categories plugin-development Tags add-submenu-page, customization, plugin-development

How to hide plugin submenu title in drop down in admin panel in wordpress?

Renaming submenu “parent slug” option to null is the solution to this. add_submenu_page( null, null, null, “manage_options”, “edit-testimonial”, “edit_testimonial” );

Categories plugins Tags add-submenu-page, plugin-development, plugins

How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?

How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?

Categories plugins Tags add-menu-page, add-submenu-page, php, plugin-development, plugins
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page11 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress