Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m

Next lesson playing in 5 seconds


Free Preview: WordPress Coding Basics: Attaching Your Functions to Hooks



When you write a function in a plugin or your theme's functions file, how do you get it to run? Hooks, that's how! Hooks let you write clean and easy-to-maintain themes and plugins, and also let you modify the behaviour of third-party themes and plugins.

In this course you'll learn how to attach functions to action and filter hooks, and when to choose each type. I'll show you how to attach your function to an action hook to run when a specific event occurs, and how to write a filter function to modify site content on the fly.

Do you want to learn WordPress development from start to finish? Check out our learning guide: Learn WordPress Development.

1.WordPress Development Basics: Attaching your Functions to Hooks
2 lessons, 12:58

Free Lesson

WordPress Development Basics: Attaching your Functions to Hooks