WordPress: Action and Filter Hooks

WordPress: Action and Filter Hooks

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 25m | 264 MB

Action hooks and filters give developers the ability to extend and customize WordPress, the world’s most popular content management system. This course teaches you how to write action and filter code to modify WordPress core, themes, and plugins. Instructor Carrie Dils explains how action hooks and filters work and shows how to leverage priorities, arguments, and conditionals for more precise control over when your code executes. Next, learn how to identify the available hooks and filters for different WordPress pages, invoke callback functions, and execute hooks. In the third chapter, Carrie introduces a start-to-finish project where she shows how to build a simple plugin with hooks and filters, and closes with some tips for using third-party developer hooks—and creating your own.

Topics include:

  • Actions and filters explained
  • Using arguments to pass data
  • Identifying available hooks and filters
  • Looking at load order and dependencies
  • Understanding callback functions
  • Registering and executing hooks in JavaScript
  • Creating a basic WordPress plugin with hooks and filters
  • Adding custom hooks
  • Using third-party hooks
Table of Contents

Introduction
1 Using hooks and filters with confidence
2 What you should know

Understand Hooks and Filters
3 What is WordPress
4 The WordPress plugin API
5 Action hooks explained
6 Filters explained
7 Changing execution order with priorities
8 Using arguments to pass data
9 Conditionals and context

Work with WordPress Hooks and Filters
10 Finding references and documentation
11 Identifying available hooks and filters
12 A look at load order and dependencies
13 Understanding callback functions
14 Using apply filters
15 Registering and executing hooks in JavaScript

Create a Basic Plugin Using Hooks and Filters
16 A look at what youre building
17 Scaffold a simple plugin
18 Adding a custom style sheet
19 Registering a sidebar
20 Displaying a widget area on single posts
21 Applying filters for loading style sheets

Work with Non-WordPress Hooks
22 Adding custom hooks
23 Inside themes and plugins with built-in hooks
24 Tips for using third-party hooks

Conclusion
25 Staying current with WordPress
26 Next steps