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.
Modify Comments title
From the course: WordPress: Customizing Themes with Genesis
Modify Comments title
- [Instructor] So far we've seen some examples of action hooks in action. In this lesson, I'd like to show you an example of using a filter in Genesis. Specifically I'll show you how to use a filter to modify this comments header on a single post page. Using the Genesis visual hook guide, I'm going to turn on filters, and here I can see there's a filter called genesis_title_comments. Let's go find this in the Genesis framework code so I can show you where it's coming from. So here I am in the Genesis framework files in comments.php, and let me do a quick search for genesis_title_comments. This is the function where that comes from, and here we go, genesis_title_comments. So we know earlier from spending all that time in framework.php that any time we see this do_action, that's a spot where we can hook in with an action. Well, whenever you see this apply_filters, that's a place where you can hook in with a filter. Let me…
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.