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)
  • (string) $output The adjacent post link.
    Erforderlich: Ja
  • (string) $format Link anchor format.
    Erforderlich: Ja
  • (string) $link Link permalink format.
    Erforderlich: Ja
  • (WP_Post|string) $post The adjacent post. Empty string if no corresponding post exists.
    Erforderlich: Ja
  • (string) $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 );