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
From the course: WordPress: Customizing Themes with Genesis
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
The core of Genesis Framework3m 42s
-
(Locked)
Template files in Genesis Framework2m 26s
-
(Locked)
The child theme template structure4m 42s
-
(Locked)
The WordPress loop2m 53s
-
(Locked)
The Genesis loop2m 16s
-
(Locked)
Action hooks and filters in WordPress4m 6s
-
(Locked)
Action hooks and filters in Genesis2m 39s
-
(Locked)
Challenge23s
-
(Locked)
Solution1m 40s
-
(Locked)
-
-
-