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
- Prompted for FTP details even with FS_DIRECT set to true
- How to export comments in WordPress?
- Where are plugins located
- What is the best page ordering plugin that works well with WPML? [closed]
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- WordPress Admin is displaying Not Available
- Add content to /wp-admin/plugin-install.php admin screens
- Delete option doesn’t appear for plugins
- Adding an admin page – OOP approach not working
- How to remove/hide action links cluttering under specific plugins’ names
- jQuery plugin only in one page/post
- Generate Advanced Custom Fields box in custom admin menu page
- How does WordPress update plugins, without running into permissions issues?
- Plugin development: how to create a form and get custom data?
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- How to create a Page alias in WordPress
- How to extract images of post and pages excluding header and logo image in wordpress?
- “Are you sure you want to do this?” when deactivating all plugins in WordPress 4.3.1 [closed]
- 403 Forbidden – You don’t have permission to access /wp-admin/admin-ajax.php on this server
- Questions about brute force attacks on the admin username, coming from amazon IP addresses
- Could not create directory
- Automatically adding post and pages to new blog setups
- Can’t see login page after migration
- Correct wp-content ownership and permissions
- Prevent WordPress installing plugins and themes via Admin
- Rotating background images with admin options
- Show an image in my header.php
- Facebook Messager Plugin
- Suggestions on Approach to New Plugin I’m Stuck On
- Create page from plugin, but have it completely hidden
- How to add subcategories to the blogroll?
- Proper way to replace the_content only for pages created by custom plugin
- I need help locating a URL that is on my site map, but that I can’t find in my WordPress dashboard
- Show author on every sub-page
- Add sub menu page in your plugin
- Full list of registered scripts or styles, but from an admin options page
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- WordPress Admin Menu defining function is seperate file
- How to create a page with links to other pages that include image and excerpt?
- Making my plugin create a page?
- How can I modify page content in the admin panel?
- Why WP_Screeen doesn’t show all options with admin_body_class
- Plugin – Admin menu page broken url
- getting notifications about updates only in the “core” page
- Get access to WordPress when logged out
- How do you add a settings page to another menu?
- Edit page header on a custom plugin
- 404 errors when updating options in admin dashboard
- Elementor Combined all Sections into 1 Text Editor
- Use get_pages() before another plugin modifies it
- Calling PHP function with AJAX
- WordPress Frontend Page using Plugin
- Powerpress upload a podcast without creating a post for it
- Allow a page to be edited by a specific custom role
- Failed to load resource: the server responded with a status of 500 () post.php
- Store admin page into variable
- How to disable users to view Other pages
- Continous audio play in pages
- Get content and send to 3rd party
- Multiple calling javascript from shortcode in one page
- History of page, interval of years
- Choose default template for a page with code
- SSH vs WordPress
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Get page content by ID (from a plugin)
- wp-admin will not redirect to wp-login.php
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- getpost content with all formatting for admin pages
- WordPress ultra slow if I click on posts?
- Display static pages instead of category, in code
- Problem with permissions in wp-content/plugins
- Add custom fields in the new and edit the site forms without touching the WP core
- Additional scrollbar appears inside the browser on every page + lag scroll -Winner theme
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- How to display content depending on the Woocommerce Product Category
- Update title field while listing wordpress page titles in Elementor selector
- Allow direct access to files/folders within WordPress to replace wp-admin
- Meta box not displaying on the plugin page
- How to access the page without registering in wordpress