From the course: WordPress: Building Child Themes

Unlock the full course today

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

Filter a function

Filter a function - WordPress Tutorial

From the course: WordPress: Building Child Themes

Start my 1-month free trial

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…

Contents