How To Add Admin Menu For Plugin

If you are building a plugin that will let users choose some options or go through some settings then you’ll need a new admin area menu. Now you can easily create that by editing core ClipBucket files but that is not the right thing. By doing that you might end up screwing some things and to avoid that is the reason why we create plugins in the first place. Here is how you can do it with just one line.

add_admin_menu('Menu Title','Menu Subtitle','menu_file.php', 'path_to_file');

Add this one line and see your new menu shining upon plugin installation.