if you want to add a top level menu page then you need to use add_menu_page() function more details on codex
add_action( 'admin_menu', 'register_my_custom_menu_page' );
function register_my_custom_menu_page(){
add_menu_page( 'my plugin', 'plugin settings', 'manage_options', 'my-plugin-settings', 'my_plugin_custom_function', plugins_url( 'myplugin/images/icon.png' ), 66 );
}
Related Posts:
- Turn Off Auto Update for Single Plugin
- Is it bad practice to create own table for a plugin?
- WordPress 5.3 update causes media library file upload to break – Cannot convert undefined or null to object
- What plugins do you commonly install on a fresh WordPress install?
- How to maintain W3C standards compliance of a theme
- Why is “plugins_loaded” not called/fired?
- Publish author posts only with editor approval?
- how to change default icon of custom plugin?
- List of all existing WordPress plugins
- How does WordPress official repository estimate ‘Active Installs’ of a plugin?
- Any plugin out there that uses WP’s internal image uploader?
- Customizing subject in comment notification e-mails
- All shortcodes not working on custom theme
- How to work with Syntax Highlighter Evolved?
- WordPress Admin is displaying Not Available
- User-Specific Timezones? Hack? Plugin?
- Disable plugins on cron and ajax page
- Convert WordPress pages to PDF
- Plugin or mod for wordpress to make content publication SUPER easy
- enqueue script only if it is not already enqueue
- Force Plugin to English Translation
- How to pass parameters (data) from plugin PHP to React
- Automattic’s eCommerce Plugin
- Display (and manage) webcam images?
- How to remove/hide action links cluttering under specific plugins’ names
- Is it possible to have screenshots in any other section rather than the screenshots section?
- How to create an edit media button for slideshow plugin?
- How to develop a community feature in the dashboard for multiauthor site
- Which hook should be used to validate custom form fields on the login form?
- Using the media uploader in a custom plugin
- Is there a plugin to protect downloads with recaptcha?
- Change Permalinks Structure to a Sequential Number for Each Post?
- Problem running Ajax in WordPress
- Custom database table for plugin not creating on activation
- Dynamic HTML not displaying at respective place
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- Should I global $wpdb outside of any of my plugin’s functions scope?
- Plugin child folder?
- How to create a word press user with hashedpassword
- Display specific WooCommerce products to different types of users
- Short code for Venues
- How would one split content of a post into pages?
- Theme and Plugins sharing common libraries
- All Updated Plugins Disappeared
- Counting pageviews on high-traffic cached sites
- Is there a quick way to inject i18n domain into theme/plugin files?
- merging an array to an existing array using add_filter
- How to change Thumbnail size of next Gen Gallery plugin?
- Questions about brute force attacks on the admin username, coming from amazon IP addresses
- What’s the _wp_desired_post_slug value for?
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Leveraging WordPress Comments on Custom Plugin Object page
- Woocommmerce show SKU in cart page
- Change wording of admin menu item?
- Correct wp-content ownership and permissions
- Show HTML form before WordPress plugin deletion
- How to check what plugins used to be on a WordPress installation?
- WooCommerce: Change default country on the cart page [closed]
- How can I list recent posts excerpts?
- Redeclare theme’s function in a plugin
- Check if we’re viewing an event
- Show price with Geo IP location
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- Plugin Deactivate Self on Activation Errors
- How to get 1 or 2 specific posts on top of my wordpress blog?
- How to find a run away wordpress plugin causing performance problems
- Form doesn’t submit on second submit call
- What would be the advantages/disadvantages of remote plugin installation?
- How to slice an array using posts_per_page? [closed]
- Should I fetch the data managed by a plugin by using its APIs or WordPress APIs?
- Use translated taxonomy labels in plugin
- Hiding posts – WP Hide Post not working
- Add a custom form on the post-new.php admin page
- Show an image in my header.php
- Plugin appends ugly URL string to index
- Scripts at the end of the page
- WSOD after upgrading to 3.1
- looking for navigation plugin (accordion) [closed]
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- Getting value from dymanic text variable into Contact Form 7
- className not populating in custom block
- woocommerce payment gateway callback not firing [closed]
- Installing a plugin on a premium site [closed]
- White page by using filter template_include
- WordPress Keeps Logging Out – What Tests Can I Run to Solve This?
- How to use JSON data from URL into table on my wordpress website
- How to show WP addon installation path during installation?
- How to export post 2 posts WordPress plugin data [closed]
- Trying to create a private area custom for each user where they upload images to a server [closed]
- Facebook Messager Plugin
- How to save inputed data in a textbox [EDITED] [duplicate]
- Replace default og:image tag YOAST
- Customization API for plugin development
- User switching only with specific role and return
- WordPress Payment gateway add on form , how to add form into list or else how to submit form to next step for payment
- Automatic plugin updates not working
- automatic plugin install availability: server configuration
- Adding Font Awesome to WP Plugin
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- How WordPress is able to change locale without using setlocale