This helps WordPress keep the main part of the admin panel clear and concise by eliminating unnecessary text that regular users don’t need to see on a regular basis.
If your plugin adds additional Administration Panels to WordPress, you can improve support by providing contextual help for your menus.
For information, see Adding Administration Menus and the Plugin API functions for a basic overview of how to add Administration Menus to WordPress with a Plugin.
Copy the below code and add at the end of your functions.php file or you can also add in your custom WordPress plugin.
1 2 3 4 5 6 7 8 9 10 | <?php add_action('admin_menu', 'my_plugin_menu'); function my_plugin_menu() { add_options_page('My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options'); } ?> |
Do like and share this post with your friends and don’t forget to subscribe to our to get the cool tutorial like this.
Reference: https://codex.wordpress.org/Adding_Contextual_Help_to_Administration_Menus
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.