wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



{$adjacent}_post_link › WordPress Filter Hooks

Seit4.2.0
Veraltetn/v
apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent )
Parameter: (5)
  • () output The adjacent post link.
    Erforderlich: Ja
  • () format Link anchor format.
    Erforderlich: Ja
  • () link Link permalink format.
    Erforderlich: Ja
  • () post The adjacent post. Empty string if no corresponding post exists.
    Erforderlich: Ja
  • () adjacent Whether the post is previous or next.
    Erforderlich: Ja
Definiert in:
Codex:

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`




Quellcode

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