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 /*------------------------------------------------------------------------------ Plugin Name: Content Rotator Plugin URI: http://www.tipsfor.us/ Description: Sample plugin for rotating chunks of custom content. Author: Everett Griffiths Version: 0.1 Author URI: http://www.tipsfor.us/ --------------------------...