I want to create a new Menu in the admin panel of WordPress for my new plugin. Just like ‘Tools’, ‘Users’, ‘Settings’, I want a new item, ‘My Plugin’.
I’m aware of the function add_menu_page()
, but how do I use it?
What is the code for doing this?
For how-to on
add_menu_page()
follow this link. For most of the wordpress function you can use codex. Eg/yes what Pragati Sureka said is true. it’s the right way to do it. You just have to put it in functions.php in your theme file