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:
- Translate a plugin using .po .mo files
- How to edit a wordpress plugin without break its update process
- Is there a good plugin for an online booking system..? [closed]
- Automating deprecated call checks?
- How can I make my custom shortcode work in a Custom HTML Widget?
- post_id always wrong in plugin
- Should we use plugins that aren’t available from the official WordPress site?
- Adding a form at the end of the content
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Creating a wordpress plugin where users can override templates
- How to use static flattr buttons
- Taking WordPress table prefixes into account
- Changing BIGINT to INT
- Can I run multiple queries with $wpdb->prepare?
- Get Plugin Information from Multiple Sites Externally
- add_filter the_content in functions.php not working
- javascript onload calling a function of a plugin
- Multisite Widget/Content
- May i Use ShortCode in Template?
- plugin ajax to external php file always return null
- Best way to modify a plugin with no hooks and no pluggable functions?
- Auto delete WordPress users according to time
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- How to stop xmlrpc attacks without disabling component to allow JetPack to work in WordPress?
- Multiple sites, multiple countries
- Do action only on certain front end pages?
- Theme my Login plugin, how to update fields
- How to resolve error after installing plugin? [closed]
- Create a navbar filter that filters by a custom field
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- Advanced Custom Field DatePicker [closed]
- Polylang : Interverting languages after development [closed]
- Lock access to plugin options
- How to set Noindex to all wordpress pages in a catergory?
- How to get post ID with hooks publish_post, new_to_publish, etc
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Prevent plugin from intruding on wp-json posts api
- How do i get file_get_contents to work in wordpress
- Plugin Development – Functions or Hooks?
- What happens when WordPress memory limit is exceeded?
- Making that Admin Bar transparent or a blue color
- Use wp_upload_dir() correctly
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- Looking for a free quiz plugin which saves the candidates answers for review [closed]
- Allowing .rfa Files In Media Upload [duplicate]
- Some WordPress Posts are automatically becoming comments on other Posts
- WordPress: Add custom add_filter for custom functions
- Best way to duplicate specific page content across two sites?
- Search users with custom meta data
- How to change layout of shop page in wordpress? [closed]
- If post exists in the database – each time goes on `else`
- How do i ‘deactivate’ a plugin only on a certain page template?
- WordPress plugin for Limited days user
- Running a function with args in add_action()
- Identify current wordpress theme
- Plugin for visitors to edit content without logging in? [closed]
- Custom Caption on WP Nivo Slider
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Javascript console errors and WSOD on edit post pages
- Order by post_date does not work in Previous and Next post pagination
- Adding LOAD MORE on a page
- Make modification of add_to_cart button specific to single page
- Discern a specific plugin’s action hooks
- How to get the checkout form data from checkout page when place-order button is clicked
- WordPress post status change from published to draft
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- Is there a request for products plugin for WooCommerce
- Custom Field used to allow a Free Story; no longer works
- How to send new visitor to a splash page for only one time in wordpress?
- Creating posts with acf_form() that has a relationship type field
- How to set plugin across network in multisite and modify it in one place?
- WordPress Plugin Install / Update Problem
- Change value of Points earned in product data
- Can I upload wordpress plugin made with framework
- Call function when save setting/option in custom admin page
- How can I disable Jetpack plugin on mobile?
- How to prevent authors from editing their post count?
- GET web api method from a WordPress PHP script
- Adding link on title its in description but not in title see screenshots attached
- how to repeat taxonomy in different places on wordpress
- Using W3 Total Cache, I set expire headers to media, css and js files,but it seems doesn’t work [closed]
- Not getting result using ajax on wordpress
- Connection lost issue
- DWQA Plugin filters not working for logged in users
- Add comment feature to woocommerce Shop page
- Save Email after login with ldap
- register_setting – validation callback weirdness
- Can someone please help me find a solution to my youtube embed problems? [duplicate]
- Google adsense stats plugin? [closed]
- Image Layout in Posts
- How do I copy files I downloaded from the wayback machine to my new site?
- I’ve installed Jetpack but can’t edit the CSS to my blog?
- Open all PDF or docx link as iframe
- Ajax in wordpress [duplicate]
- Looking for a plugins for organization portal (Staff, Units, Departments)? [closed]
- Need help with restricted page for users
- How to make horizontal scrolling menu [closed]
- How to add custom html to the Media > Attachment Details modal?
- Unable to access WPadmin, website down
- ‘Active lotteries’ only custom query for woocommerce lottery plugin and elementor