1. Creating WordPress Plugin
Thank you
Creating WordPress Plugin
Harmanpreet Singh
Dept. of Computer Science & Engineering
June 08,2012
Harmanpreet Singh http://codex.wordpress.org
2. Creating WordPress Plugin
Thank you
Brief Introduction
What is WordPress?
What is WordPress Plugin?
Harmanpreet Singh http://codex.wordpress.org
3. Creating WordPress Plugin
Thank you
Steps
Create a php file in wp-content/plugins, which will act as main file
of our plugin.
1 Write file header - Standard plugin information
2 Information about licensing for the Plugin
3 Programming your plugin
Harmanpreet Singh http://codex.wordpress.org
4. Creating WordPress Plugin
Thank you
Adding Widget
Give HTML markup of theme
Add widget to list of widgets
Register widget to WordPress (telling wordPress to use this
widget)
Harmanpreet Singh http://codex.wordpress.org
5. Creating WordPress Plugin
Thank you
Things should be considered
Choose Unique Name
There should be no space or empty line before “<?php” and
after “?>” Other wise it will give error of “Cannot modify
header information”
Follow Wordpress Coding Standards
Inline Documentation
Make Readme File
Harmanpreet Singh http://codex.wordpress.org