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.
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.
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.
Bootstrap Theme Migrated to WordPress
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
How to remove empty menu space when creating admin page without menu title using add_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 }
How to create a custom post-new.php page for plugin , no wp menu
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.
Renaming submenu “parent slug” option to null is the solution to this. add_submenu_page( null, null, null, “manage_options”, “edit-testimonial”, “edit_testimonial” );
How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?