Preparation
As always, we're going to go through the same setup steps to get our plugin outlined so we can get it activated and tested as soon as possible.
- Create a folder inside the
wp-content/plugins/
directory. We are naming this plugin "Content Rotator", so create a new folder insidewp-content/plugins/
namedcontent-rotator
. - Create the
index.php
file. - Add the Information Head to the
index.php
file. If you forgot the format, just copy and modify it from the Hello Dolly plugin like we did in previous chapters.We're giving you bigger sections of code than before because hopefully by now you're more comfortable adding and testing them. Here is what our
index.php
looks like:<?php /*------------------------------------------------------------------------------ ...
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.