wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



{$adjacent}_post_link › WordPress Filter Hooks

Da4.2.0
Deprecaton/a
apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent )
Parametri: (5)
  • (string) $output The adjacent post link.
    Richiesto:
  • (string) $format Link anchor format.
    Richiesto:
  • (string) $link Link permalink format.
    Richiesto:
  • (WP_Post|string) $post The adjacent post. Empty string if no corresponding post exists.
    Richiesto:
  • (string) $adjacent Whether the post is previous or next.
    Richiesto:
Definito a:
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




Sorgenti

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