Summery Summery

Filters the adjacent post link.

Syntax Syntax

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

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.

Source Source

File: wp-includes/link-template.php


Changelog Changelog

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


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.