From the course: WordPress: Building Child Themes
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Hooks, filters, and action - WordPress Tutorial
From the course: WordPress: Building Child Themes
Hooks, filters, and action
- [Instructor] One of the most important ideas in WordPress theme and plugin development are hooks. You could say that this lesson is about actions and filters, because actions and filters are two kinds of functions that interact with WordPress hooks. Understanding hooks isn't all that easy, partly because the terms themselves are rather tricky to visualize and distinguish from one another. But the payoff is huge. As a developer, we find that working with filters and actions is probably the most common way we interact with WordPress. Let's start by defining some terms. A hook is a place in WordPress's code that invites other functions to add to it. When you create a hook, you're giving yourself and other developers the opportunity to add in additional functionality at that location. A hooked function is a custom PHP function that we can hook into WordPress at the locations specified by its hooks. And there are two types. The two types of hooked functions that exist are actions and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
- Ex_Files_WordPress_Building_Child_Themes_Starting_Site.zip
- Ex_Files_WordPress_Building_Child_Themes_2.zip
- Ex_Files_WordPress_Building_Child_Themes_3.zip
- Ex_Files_WordPress_Building_Child_Themes_4.zip
- Ex_Files_WordPress_Building_Child_Themes_5.zip
- Ex_Files_WordPress_Building_Child_Themes_6.zip
- Ex_Files_WordPress_Building_Child_Themes_7.zip
Contents
-
-
-
-
-
-
(Locked)
Understanding functions.php2m 29s
-
(Locked)
Finding functions in the parent theme2m 13s
-
(Locked)
Modify a pluggable function4m 38s
-
(Locked)
Hooks, filters, and action2m 33s
-
(Locked)
Filter a function5m 25s
-
(Locked)
Hooking functions3m 14s
-
(Locked)
Challenge: Change posted by1m 2s
-
(Locked)
Solution: Change posted by2m 12s
-
(Locked)
-
-
-
-