wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



{$adjacent}_post_link › Filtr WordPress Hooks

Od4.2.0
Przestarzałyn/a
apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent )
Parametry: (5)
  • (string) $output The adjacent post link.
    Wymagane: Tak
  • (string) $format Link anchor format.
    Wymagane: Tak
  • (string) $link Link permalink format.
    Wymagane: Tak
  • (WP_Post|string) $post The adjacent post. Empty string if no corresponding post exists.
    Wymagane: Tak
  • (string) $adjacent Whether the post is previous or next.
    Wymagane: Tak
Zdefiniowane na:
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




Źródło

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