Writing a WordPress Plugin from Scratch (Kostas Karolemeas)

Writing a WordPress Plugin from Scratch (Kostas Karolemeas)

Steps required to develop a plugin for registering shortcodes that integrate with another system.

Transcript

  1. Writing a Wordpress plugin from scratch Kostas Karolemeas CTO, pinobo.com

  2. Why?  Sometimes plugins by others suck… because:  They

    are not actively developed and have bugs  They have dependencies’ conflicts  They do not do the job  Sometimes you keep repeating the same code in most of your project.  Sometimes you have some great functionality that you want to share with others or even make money out of it. Writing a wordpress plugin from scratch Kostas Karolemeas
  3. Plugin Files (1/3) https://codex.wordpress.org/Writing_a_Plugin • Standard plugin information • plugin

    information header • License • Most Plugins use the GPL2 license used by WordPress or a license compatible with the GPL2 • Actual Code my-plugin.php Writing a wordpress plugin from scratch Kostas Karolemeas
  4. Plugin Files (2/3) http://www.gnu.org/licenses/gpl-2.0.txt • GPL2 License • Required for

    Wordpress Plugin Repository gpl-2.0.txt Writing a wordpress plugin from scratch Kostas Karolemeas
  5. Plugin Files (3/3) http://wordpress.org/plugins/about/readme.txt • Plugin info • Description •

    Installation • FAQ • Screenshots • Changelog, etc readme.txt Writing a wordpress plugin from scratch Kostas Karolemeas
  6. Install Plugin  Zip the 3 files into my-plugin.zip 

    Upload file to install Writing a wordpress plugin from scratch Kostas Karolemeas
  7. Hands-on Writing a wordpress plugin from scratch Kostas Karolemeas

  8. Hands-on Writing a wordpress plugin from scratch Kostas Karolemeas