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_linkprevious_post_link$outputstring
$formatstring
$linkstring
$postWP_Post|string
$adjacentstring
return apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/adjacent_post_link