O'Reilly logo

WordPress 3 Plugin Development Essentials by Everett Griffiths, Brian Bondari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a new plugin

Create a new plugin folder named standardized-custom-content inside the wp-content/plugins folder. Next, create an index.php file and add an information header to it. If you have forgotten the format, just modify the one from the Hello Dolly plugin. The following is our information header:

/*
Plugin Name: Standardized Custom Content
Plugin URI: http://www.tipsfor.us/
Description: Forces post-types to use a standard list of custom fields with options for checkboxes, dropdowns, and various text fields.
Author: Everett Griffiths
Version: 0.1
Author URI: http://www.tipsfor.us/
Based on work by Steve Taylor:
http://sltaylor.co.uk/blog/control-your-own-wordpress-custom-fields/
*/

Save your work and then try to activate the plugin. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required