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



get_{$adjacent}_post_where › WordPress Filter Hooks

Seit6.9.0
Veraltetn/v
apply_filters( "get_{$adjacent}_post_where", $where_prepared, $in_same_term, $excluded_terms, $taxonomy, $post )
Parameter: (5)
  • () where The `WHERE` clause in the SQL.
    Erforderlich: Ja
  • () in_same_term Whether post should be in the same taxonomy term.
    Erforderlich: Ja
  • () excluded_terms Array of excluded term IDs. Empty string if none were provided.
    Erforderlich: Ja
  • () taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true.
    Erforderlich: Ja
  • () post WP_Post object.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the WHERE 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'. Possible hook names include: - `get_next_post_where` - `get_previous_post_where`




Quellcode

$where = apply_filters( "get_{$adjacent}_post_where", $where_prepared, $in_same_term, $excluded_terms, $taxonomy, $post );