The acronym OOP stands for object-oriented programming. OOP is a programming paradigm, meaning it’s another approach for how you architect and build code. OOP is programming that is oriented to (focused on) objects. It seeks to emulate the real world. What does that mean? Let’s relate this concept to the objects you know. Look around your office. Grab an ink pen. Now, look at it. An ink pen is mass-produced from a blueprint. Millions of ink pens were made just like yours. Each pen has characteristics, such as the color of the ink, cap or click, body color, and size. […]
Welcome to the Introduction to PHP OOP for WordPress lab. This is a gentle introduction to object-oriented programming. This lab starts where the typical WordPress developer is at, meaning I’ll start with procedural and help you to make the leap over into OOP. In this lab, you’ll learn what OOP is and what it is not. You’ll be writing some code to help you see how it works. OOP is a different mindset. It can be difficult to wrap your mind around. Therefore, you need to work with me. You’ll also need to focus on the intent and concepts. Therefore, […]
The best way to learn OOP is to build convert something that you already know from procedural to OOP. That will make the thought processes and methodologies more relatable for you. In Part 4, you will convert the Collapsible Content Plugin from procedural to Object Oriented Programming (OOP).
Object-oriented programming (OOP) seeks to emulate real objects through code. In life, objects have both characteristics, those attributes that define it, and behavior. OOP is a completely different approach to programming than procedural. As such, its actual implementation is often misapplied and misunderstood. In this hands-on lab, you will get an introduction to OOP. You’ll explore how to implement it for your WordPress plugins and theme.