Adding a custom manager page
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 ...
Get WordPress 3 Plugin Development Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.