The following is a step by step process for creating a plugin
- Add a directory for your plugin files
- <site directory>/public_html/wpcode/wp-content/plugins/<your plugin>
- In this directory add a main php file:
- <your plugin>.php
- 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
*/
- Activate the plugin from the plugins panel
- Add functionality to this plugin, such as:
- Add shortcodes to the php file
- Add actions to the php file