From the course: WordPress: Customizing Themes with Genesis

Unlock the full course today

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

Action hooks and filters in Genesis

Action hooks and filters in Genesis

From the course: WordPress: Customizing Themes with Genesis

Start my 1-month free trial

Action hooks and filters in Genesis

- [Instructor] As you've already seen, WordPress core is full of action and filter hooks, that theme and plugin developers can tap into. Well, Genesis is constructed in a way that gives us even more flexibility in terms of how we can customize our themes. For example, here we are in the loops.php file and I'm on line 64 and here's this Genesis standard loop. Now each of these do actions within this function represent a hook where something is happening within the Framework, and where you as a developer can inject your own code. Each one also comes with a nice little comment block explaining what it does. As an example, I'm going to show you a post on the demo site I'm using for Discourse. Now I've got a plugin installed called the Genesis Visual Hook Guide, which you'll see in action in just a moment. I'm going to go to a single post, view it, and then I'll use this Genesis Hook Guide from the menu to display…

Contents