The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, 'next' or 'previous'. Possible hook names include: <ul> <li>next_post_link</li> <li>previous_post_link</li> </ul>
Parameters
$outputstring
The adjacent post link.
$formatstring
Link anchor format.
$linkstring
Link permalink format.
$postWP_Post|string
The adjacent post. Empty string if no corresponding post exists.
2390* @param string$output The adjacent post link.2391* @param string$format Link anchor format.2392* @param string$link Link permalink format.2393* @param WP_Post|string$post The adjacent post.Emptystringif no corresponding post exists.2394* @param string$adjacent Whether the post is previous or next.2395*/2396returnapply_filters("{$adjacent}_post_link",$output,$format,$link,$post,$adjacent);2397}23982399/**2400* Displays the adjacent post link.2401*2402* Can be either next post link or previous.
History
Introduced in 2.6.0. Unchanged from 6.7.7 through 7.1.0.