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.
Filter a function - WordPress Tutorial
From the course: WordPress: Building Child Themes
Filter a function
We're going to cover how to filter and hook functions. These are actually pretty advanced concepts and if you learn both of these techniques you're already half way to being a WordPress plugin developer. We're not going to go super deep into these topics but because you may occasionally need to know how to filter or hook an existing function in a child theme, I'm going to cover it. In many cases you won't need to know this but I think it's better to show you what filters and hooking a function looks like so you have it in case you need it. We're going to look at filters first. Filters let you take a little bit of content and modify it without changing anything else. So, a plugin might do a ton of things with events, start dates, and payments, and you just filter what the title of that event looks like without having to rewrite the entire plugin. This is incredibly powerful since you can just find the filter and change the content without having to change the plugin itself. One of the…
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)
-
-
-
-