{$adjacent}_post_link

Advertisement

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

$output

The adjacent post link.

$format

Link anchor format.

$link

Link permalink format.

$post

The adjacent post.

$adjacent

Whether the post is previous or next.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply