apply_filters( "{$adjacent}_post_link", string $output, string $format, string $link, WP_Post $post, string $adjacent )

Filters the adjacent post link.

Description Description

The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, ‘next’ or ‘previous’.

Parameters Parameters


(string) The adjacent post link.


(string) Link anchor format.


(string) Link permalink format.


(WP_Post) The adjacent post.


(string) Whether the post is previous or next.

Top ↑

Source Source

File: wp-includes/link-template.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.2.0 Added the $adjacent parameter.
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.