Creating a Plugin

The following is a step by step process for creating a plugin

  1. Add a directory for your plugin files
    • <site directory>/public_html/wpcode/wp-content/plugins/<your plugin>
  2. In this directory add a main php file:
    • <your plugin>.php
  3. Add a documentation header in this PHP file, such as

/*
Plugin Name: Jesses First Plugnin
Plugin URI: http://jesseaallen.com/
Version: v1.0
Author: Jesse Allen
Description: Just a plugin to understand plugin development
*/

  1. Activate the plugin from the plugins panel
  2. Add functionality to this plugin, such as:
    • Add shortcodes to the php file
    • Add actions to the php file
This is Jesse's Header