From the course: WordPress: Action and Filter Hooks

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

The WordPress plugin API

The WordPress plugin API - WordPress Tutorial

From the course: WordPress: Action and Filter Hooks

Start my 1-month free trial

The WordPress plugin API

- [Instructor] Plugins are the way that we can extend WordPress without editing the core code itself. At its most basic, a plugin is a set of functions, written in PHP, that adds specific features or services to a WordPress site. WordPress provides the rules of engagement, so to speak, via its plugin API. The plugin API is made up of hooks, both action hooks and filter hooks, that let us latch on to WordPress at a specific point in runtime, such as when a user logs in or when someone publishes a post. You can think of it sort of like an assembly line, except use your imagination and pretend that these boxes are webpages. The process starts at one end and moves through to completion with a series of tasks happening along the way. WordPress has hooks throughout its code that enable us to inject our own bit of code that either adds to, removes, or modifies things at any point in the process. So, what's the difference…

Contents