It's not written anywhere as a hard core rule, but in general, we try to put a plugin's configuration page under the Plugins menu. There is nothing that prevents you from creating our own custom menus, but often developing a custom menu item for your plugin is nothing but pure vanity; it's a plugin, not the second coming! So we are going to add a custom menu item to the Plugins menu.
Let's first create a sample page that will show up when we click on our custom menu item. Later on, we'll customize this, but for now, let's keep it simple. Create a new file inside the content-rotator/includes/
directory named admin_page.php
and put some sample text into it:
<div class="wrap"> <?php screen_icon(); ?> <h2>Content Rotator Administration</h2> <p>We're remodeling...</p> </div>
Notice that we're wrapping everything with a div
tag that uses the wrap
class. Use this class for best results. We are also using a theme function...