From the course: WordPress: Building Child Themes
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Modify a pluggable function - WordPress Tutorial
From the course: WordPress: Building Child Themes
Modify a pluggable function
- [Instructor] We found our pluggable function, 2019 the posts navigation. Let's go ahead and plug this function. We're going to start by copying the entire function. Copy everything between the if and endif. So that'll be just this. And let's go ahead and copy the comment as well. So I'll copy this and I'm going to paste it into our child themes functions.php file. I'll open this up and we'll post it right beneath our function to enqueue styles. Now that we have this duplicate code in our child themes functions.php, let's change something and see what happens. But before we do, let's take a look at the posts pagination on WordPress.org. If I go to WordPress.org, I can find any of the functions built into WordPress. And the posts pagination is where WordPress is printing those links. It basically determines what WordPress uses to create those previous and next links at the bottom of a page of posts. And if we scroll down, we can see all of the parameters of that function. We can also…
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.
- Ex_Files_WordPress_Building_Child_Themes_Starting_Site.zip
- Ex_Files_WordPress_Building_Child_Themes_2.zip
- Ex_Files_WordPress_Building_Child_Themes_3.zip
- Ex_Files_WordPress_Building_Child_Themes_4.zip
- Ex_Files_WordPress_Building_Child_Themes_5.zip
- Ex_Files_WordPress_Building_Child_Themes_6.zip
- Ex_Files_WordPress_Building_Child_Themes_7.zip
Contents
-
-
-
-
-
-
(Locked)
Understanding functions.php2m 29s
-
(Locked)
Finding functions in the parent theme2m 13s
-
(Locked)
Modify a pluggable function4m 38s
-
(Locked)
Hooks, filters, and action2m 33s
-
(Locked)
Filter a function5m 25s
-
(Locked)
Hooking functions3m 14s
-
(Locked)
Challenge: Change posted by1m 2s
-
(Locked)
Solution: Change posted by2m 12s
-
(Locked)
-
-
-
-