Skip to content
Location
- All information for a plugin goes in the plugin directory
- <site directory>/public_html/wpcode/wp-content/plugins/<your plugin>
- It is best to make <your plugin> above a directory. This allows for multiple files, including: multiple PHP, Javascript, CSS, image files, Readme.txt
- Inside of your directory, put a file <your plugin>.php as the main php file for your plugin
Activation
- After the file exists in the directory, it will appear in your list of plugins
- You can activate it from the Plugins menu of WordPress
Content
- The file <your plugin>.php can contain
- Shortcode definitions
- action definitions
Documentation
- Header – the main PHP file should contain a header, which describes the plugin. This will appear in the plugins page.
This is Jesse's Header