Tags
Language
Tags
January 2025
Su Mo Tu We Th Fr Sa
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 1

WordPress Coding Basics: Attaching Your Functions to Hooks

Posted By: ELK1nG
WordPress Coding Basics: Attaching Your Functions to Hooks

WordPress Coding Basics: Attaching Your Functions to Hooks
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 240 MB | Duration: 13 minutes

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.