$adjacent_post_link – filter

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

Possible hook names include:

– `next_post_link` – `previous_post_link`

Parameters

.
( 2.6.0 ) . .
Added
( 4.2.0 ) the `$adjacent` parameter. . . .
( string ) $output The adjacent post link. . . .
( string ) $format Link anchor format. . . .
( string ) $link Link permalink format. . . .
$post
( WP_Post ) The adjacent post. . . .
( string ) $adjacent Whether the post is previous or next. . . .
API Letters: ,,

Implementers