- Introduction to WordPress Plugin Development 101
- Plugin Development 101 – What Makes a Plugin?
- Plugin Development 101 – General Best Practices
- Plugin Development 101 – An Intro to Filters
- Plugin Development 101 – Intro to Actions
- Plugin Development 101 – Registering a Custom Post Type
- Plugin Development 101 – Intro to Short Codes
- Plugin Development 101 – Intro to Loading Scripts and Styles
- Plugin Development 101 – Introduction to Adding Dashboard Menus
- Plugin Development 101 – Separating Your Plugin into Multiple Files
- Plugin Development 101 – Your First OOP Plugin
In part 10 of Plugin Development 101 we are looking at how to create your first OOP-based plugin.
Object Oriented Programming, OOP for short, is a way of writing your PHP. In general it is considered “more complex” and often thought of as “scarier” than standard procedural (function based) programming. The procedural method is certainly easier to learn, at least from my experiences, but gaining an understanding of OOP and knowing how to write it, as well as when you should use it, is tremendously valuable.
This video walks you through creating a basic plugin that is written in an Object Oriented approach.
Note: this video does not propose to explain the indepth reasons to how OOP works, why you should use it, when you should not use it, etc. It simply illustrates an introductory example of how to write an OOP-based plugin. It is meant to give a basic comprehension of OOP so that you can get your feet wet.