A WordPress-centric search engine for devs and theme authors



{$adjacent}_post_link ›

Since4.2.0
Deprecatedn/a
apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent )
Parameters: (5)
  • (string) $output The adjacent post link.
    Required: Yes
  • (string) $format Link anchor format.
    Required: Yes
  • (string) $link Link permalink format.
    Required: Yes
  • (WP_Post) $post The adjacent post.
    Required: Yes
  • (string) $adjacent Whether the post is previous or next.
    Required: Yes
Defined at:
Codex:

Filters the adjacent post link.

The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, 'next' or 'previous'.





Source

return apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent );