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
- The sidebar in wp-admin dashboard disappears when viewed on mobile screens in WordPress
- Show only those pages that are created by the specific logged in user in WordPress
- (FES EDD) New vendor submission page is blank
- Plugin updates change folder permissions
- Linux Permissions and Ownership for WordPress
- Facebook Messager Plugin
- Show existing POST categories as items in the sidebar menu [closed]
- WordPress plugin/theme or other wayout to create portable pages?
- php page not found for plugin options menu
- Is it possible make a back-end for WordPress with WordPress?
- Changing page URL and connect newsletter to MailChip
- Suggestions on Approach to New Plugin I’m Stuck On
- Create tabs in admin options page from custom post type loop
- Updating plugins asks for FTP information, why? (this is a new one)
- WordPress page and plugin list using sql query
- Create page from plugin, but have it completely hidden
- WP Plugins – Use includes to display page content
- Remove ‘Check Compatibility’ from Plugins menu
- Lock access to plugin options
- How to add subcategories to the blogroll?
- Can’t Install Standard Plugins on a Local MAMP installation
- 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?
- Proper way to replace the_content only for pages created by custom plugin
- Display Custom Field Value on Admin Page Column
- Would Gutenberg be considered a PlugIn?
- I need help locating a URL that is on my site map, but that I can’t find in my WordPress dashboard
- How to use add_submenu_page() for editors?
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Cannot access my wp-admin after installing Gzip compression [closed]
- Show author on every sub-page
- Add sub menu page in your plugin
- What’s causing this error? “Warning: Invalid argument”
- Advanced Custom Fields – Disable Users to Edit Custom Fields
- Plugin settings won’t save changes
- 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?
- Move plugin-settings to ‘Settings’-menu in the admin
- How to have sample page for each new register users in a membership website
- How to make multiple admin pages for one plugin?
- $wpdb update query in plugin only updating one column
- Editing a text file from plugin menu
- One sub site is slow while all others load fine, same theme & plugins [closed]
- WordPress Admin Menu defining function is seperate file
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- How to create a page with links to other pages that include image and excerpt?
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- Thesis 2 custom Page
- Making my plugin create a page?
- creating a plug in that would tap into save/update action of posts [closed]
- How can I modify page content in the admin panel?
- Add Content to Content()
- How to display terms and conditions in post area?
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- Simulating a wp page – wp page load sequence
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- Why WP_Screeen doesn’t show all options with admin_body_class
- Plugin Admin Menu Boiler Plate
- add_submenu_page returns null
- WordPress won’t allow for updates to plugins or WordPress Core
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- WordPress permissions error with admin account
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Change the layout of action links under the plugin names
- Plugin – Admin menu page broken url
- How to create wordpress page that lets users create their own quiz? [closed]
- getting notifications about updates only in the “core” page
- How do I add an options page at the bottom of the list?
- Huge number of 404 pages getting spawned
- Remove value from array within post meta ajax admin
- Is there a better way of handling AJAX requests in WordPress?
- Redirect Plugins.php to New Plugin Page
- Mowing site to another domain in simplest way
- Plugins & backup not working correctly on new Digital Ocean server
- Get post content from outside the loop with plugin shortcode usability
- Show WordPress Plugin Menu(Admin) To Editor
- Add logo to admin menu in my plugin
- How to create plugin auto create page wordpress?