Wednesday, September 20, 2017

Tuts+: 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.



from Envato Tuts+ Courses http://ift.tt/2xfO97g
via IFTTT

0 comments:

Post a Comment