From the course: WordPress: Building Child Themes

Unlock the full course today

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

Modify a pluggable function

Modify a pluggable function - WordPress Tutorial

From the course: WordPress: Building Child Themes

Start my 1-month free trial

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…

Contents