Tag: Object-Oriented PHP
Simple WP_Query Example: Using a Shortcode to Display Post Titles

In this video and text Quick Guide, we present a basic use of WP_Query inside a WordPress shortcode, to show the post titles of the five most recently published posts. We’ve designed this Quick Guide to be a simple intro to using WP_Query in general, as well as to using WP_Query to display post titles and other post data inside a shortcode specifically.
Object-Oriented PHP for WordPress Developers

Welcome to our free course on object-oriented PHP (OOPHP) for WordPress. This course explains the following:
Object-Oriented PHP: The __construct() Magic Method

In this article, we tackle an intermediate topic in object-oriented PHP: magic methods, specifically __construct().
Understanding Class Inheritance (Child and Parent Classes) in Object-Oriented PHP

Last time, we covered the fundamentals of object-oriented programming (OOP) in PHP: what an object is, what a class is, and how they interact.
The Three Development Paradigms: Procedural, Object-Oriented, and Functional

When you’re brand new to development in PHP or JavaScript, you don’t really need or want to think too hard about programming paradigms. You just want to get things to work. And that makes a lot of sense. But eventually as you go along, you start to wonder. What’s this “OOP” thing people seem obsessed with? Am I doing that? Should I be?
Anatomy of a WP-CLI Command: wp database import

To some, WP-CLI might seem like a nice but optional convenience for a WordPress developer who’s comfortable with the command line. For developers who’ve dealt with time-out issues in PHP processes, or who administer lots of websites, WP-CLI is more than that: it’s a time-saver and power-tool.
Making Your First WordPress Widget

Sidebars were one of the oldest features of WordPress as a publishing platform, and widgets have been in WordPress for years. This little quick guide walks through the process of making your own widget. Why would you want to?
YAY! Data Management Objects in WooCommerce 2.7
Everyone! Big good changes to WooCommerce’s developer experience are coming! It is good news!