Category: Back-End Development

WordPress Hooks, Actions, and Filters: What They Do and How They Work

hook | wordpress hooks actions and filters

This article introduces one of the most important topics in WordPress development: WordPress hooks, including action hooks and filter hooks. They are at the core of not only how WordPress plugins work, but nearly all code throughout the WordPress ecosystem. By that I mean most WordPress themes also use them. As does “WordPress core” itself. WordPress hooks are kind of the *must know* topic in WordPress development.




A Story of WP Option Autoload: A wp_options Cleanup

Today I want to dive into a kind of esoteric topic: WP option autoloading. It’s not something a lot of WordPress developers are likely to hit or to need. But vague knowledge of this topic saved me a bunch of time and confusion on a client project, so I want to help you understand how casual use of the update_option function without understanding WordPress’s autoload options feature can cause you pain and heartache.



See Your WordPress Scheduled Tasks

Sometimes, a developer will want to know why a WordPress site gets slow at a particular time, why their WP-Cron scheduled task isn’t working, or want to force one to run at off time. For all of these problems, the WP Crontrol plugin is the perfect tool. It’s a WordPress plugin to quickly debug your WP-Cron issues, all in one convenient place.



Learn WordPress Development: The Basic Course

wordpress development course basics
So You Want to Learn WordPress Development

WordPress development is a hugely useful skill, but it’s also tricky to learn—especially if you learn things out-of-order and try to tackle advanced topics while remaining confused on the fundamentals.


PHP Foreach: All You Need to Know

One of the most-used functions in my life with PHP is foreach. Partly, this is because it’s just an exquisitely named function, and it maps well to how I think. Partly this is because it’s kind of the backbone of a webpage: iterate through a set of things, operating on some selectively, and then display them all.


WP Cron in Practice: wp_schedule_event Examples + More

A few weeks ago we talked about what “cron jobs” were in WordPress and beyond. That tutorial about what “WordPress scheduled tasks” are hopefully gave you a good understanding of some of the things that you might do with them. Today we’ll instead focus on how you’ll use wp_schedule_event to actually do them. That is, we’ll cover a number of WordPress cron job examples.