you can do something like:
// create your own page
add_menu_page('my-page', 'My Page', 'My Page', 'parent-slug', 'my_plugin_options', '', '10');
// create the subpage under my-page
add_submenu_page('parent-slug', 'Sidebars', 'Sidebars', 'manage_options', __FILE__, array('sidebar_generator','admin_page'));
Note that the last parameter on add_menu_page is a 10. The higher the number the lower the position of the menu item.
HTH
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- Admin menu as submenu from another plugin
- Creating a WordPress admin page without a menu for a plugin
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Best way to manage a lot of pages in Wp Admin [closed]
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Hide Theme options and Customize Admin menu
- Polylang : Interverting languages after development [closed]
- Dynamic admin submenu
- Is there any way to make myself an admin?
- Display Plugin Panels Outside of Admin Areas
- How to remove a CPT Menu from the Root Admin only
- Custom page in plugin visible in menu
- Admin menu hilighting wrong item for CPT
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- Getting 404 page not found error while trying to access add new plugin / themes
- Making plugin to use different table prefix cause permission problem
- How do I add custom fields to the “Edit page” admin screen?
- WordPress Plugin and other pages not opening
- Submitting form to admin-post.php WordPress
- Show only those pages that are created by the specific logged in user in WordPress
- I found this in a plugin. What does it do? is it dangerous?
- Disable /wp-admin/plugin-install.php
- Is There a WordPress Hook to Filter the Edit Posts View?
- Reordering themes in admin panel
- WordPress admin notice in plugin function
- Using tabs for wordpress plugin
- How can I show drafts in wp_dropdown_pages list?
- WP-PageNavi plugin doesn’t work with multiple pages of search results
- wp_verify_nonce() why return false?
- Backend option to include a javascript file on specific pages?
- Change the $parent_file of a plugin page
- Show a special message for private page?
- How to Sort the Favorite Plugins Screen Alphabetically?
- Hide extra menus from WordPress Dashboard
- ‘wp_login’ action hook not working with wp-login.php file
- All Users > User List > Update User Meta Field Inline
- Default WordPress WP Editor removing style tags and html tag
- How do I write an inventory list plugin that creates dynamic details pages?
- Can I allow certain people to add/edit pages within a parent?
- How to use add_submenu_page() for editors?
- Cannot access my wp-admin after installing Gzip compression [closed]
- Plugin settings won’t save changes
- How to have sample page for each new register users in a membership website
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- Simulating a wp page – wp page load sequence
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- Huge number of 404 pages getting spawned
- Mowing site to another domain in simplest way
- Plugins & backup not working correctly on new Digital Ocean server
- Show WordPress Plugin Menu(Admin) To Editor
- Custom form not showing in correct place on page
- Use jQuery Datepicker code from plugin
- Cannot access WP admin because plugin returns 204
- Install old version of plugin from admin panel?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- How to force load a page in plugin?
- Adding a pagenavi to function for displaying bookmarks
- Is there a syntax highlighting plugin for HTML View? [duplicate]
- Adding custom Field To The Posts Listing
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Pass PHP variable to javascript
- How to permanently show Word Counter on Create/Edit Page. WordPress5.9.3
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- Copy/paste local images not working in WordPress
- how to move a plugin-block in Edit Post page back to bottom area?
- Creating an admin button that when clicked shows a popup form
- wp_post not working, keeps redirecting to posts page
- WordPress fatal error from php protocol codes
- create pages automatically and dynamically in wordPress
- add menu page not showing Icon
- Automatic chage password of pages after some time
- Plugin updates, change file permissions on WordPress
- How to allow URL with filename & extension in wordpress?
- Get full URL of WP plugin admin page
- How to Disable Auto Executing Script in A Particular Page Only
- WordPress Plugin PHP Not Calling Function
- Is admin section completely customizable in terms of styling?
- catch urls with specific pattern and show specific content for them by plugin
- WP Plugin permissions – create new files
- Creating Admin Submenu Page via Class Method
- Add_Meta_box to custom page (formidable edit post)
- Disable plugin on admin page
- Plugin option for input box validation
- Options page textarea to populate custom post select field
- Ajax return 0 in plugin – ajax only used in wp-admin
- Restrict my pages from public
- page creator to leave comments ONLY
- How can I pass value to function in add_menu_page?
- Get post id in Post Page within Wp-admin
- AdBlock blocks my non-advertising sidebar images [closed]
- Combining JS files to one script
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- How to display content depending on the Woocommerce Product Category
- Meta box not displaying on the plugin page
- WordPress theme is not displaying the correct home page in the Pages section
- Secure way to add JS Script to WordPress filesystem
- Not applying update field (acf) in my plugin