wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



{$adjacent}_post_link › Les Filtres WordPress

Depuis4.2.0
Dépréciéen/a
apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent )
Paramètres: (5)
  • (string) $output The adjacent post link.
    Requis: Oui
  • (string) $format Link anchor format.
    Requis: Oui
  • (string) $link Link permalink format.
    Requis: Oui
  • (WP_Post|string) $post The adjacent post. Empty string if no corresponding post exists.
    Requis: Oui
  • (string) $adjacent Whether the post is previous or next.
    Requis: Oui
Défini(e) dans:
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




Source

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