Build Your Own Business Website header image

Hooks

How to Convert Code from Thesis Open Hook to a Custom Function

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

In this session we show how to convert code from Thesis Open Hook to a custom function by creating a function for the nav menu add_action thesis_hook_after_header that will take the code as a function and place that code in exactly the same spot as it was. We also show how to clean the code

Introduction to Customizing Thesis 2.1 Using PHP – Part 5 – Write our First Function Using a WordPress Filter Hook

Difficulty Level -

Filed Under Topics -

Listed Under Lesson Subjects -

Applies to -

That was our very first function applied to an action hook in this Customizing Thesis 2.1 using PHP seminar. Now, what we're going to do is write our very first function using a WordPress Filter Hook. A filter hook behaves very much the same here, it's a function and we're going to call it hello_world_filter

Introduction to Customizing Thesis 2.1 Using PHP – Part 4 – Write Our First Function Using a WordPress Action Hook

Difficulty Level -

Filed Under Topics -

Listed Under Lesson Subjects -

Applies to -

Now that you understand what Action Hooks and Filter Hooks are, let's go ahead and create a very first action hook. Here we are in master.php. And if you've worked in Thesis 1.8 before you're going to see this is familiar because what we're going to do is create a function essentially. So, function and

Introduction to Customizing Thesis 2.1 Using PHP – Part 3 – Introduction to WordPress Action Hooks & Filter Hooks

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

Now that you understand Thesis 2.1 custom PHP files, next we're going to talk about WordPress action hooks and filter hooks and how we'll be using them in Thesis 2.1. First, I’d like to direct your attention for a moment to the main seminar page here, Introduction to Customizing Thesis 2.1 Using PHP. Because this

Does Thesis 2.0 Make Hooks Obsolete?

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

In this session we answer the question, “Does Thesis 2.0 make hooks obsolete?” And, no, this is not really the case because there is  some coding that we may still want to do using hooks. Thesis 2.0 allows us to create hooks by specifying a hook name in the container which automatically then create 4