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



get_{$adjacent}_post_join ›

Seit4.4.0
Veraltetn/v
apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy, $post )
Parameter: (5)
  • (string) $join The JOIN clause in the SQL.
    Erforderlich: Ja
  • (bool) $in_same_term Whether post should be in a same taxonomy term.
    Erforderlich: Ja
  • (array) $excluded_terms Array of excluded term IDs.
    Erforderlich: Ja
  • (string) $taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true.
    Erforderlich: Ja
  • (WP_Post) $post WP_Post object.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the JOIN clause in the SQL for an adjacent post query.

The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, 'next' or 'previous'.





Quellcode

$join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy, $post );