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



get_{$adjacent}_post_where › Les Filtres WordPress

Depuis6.9.0
Dépréciéen/a
› apply_filters( "get_{$adjacent}_post_where", $where_prepared, $in_same_term, $excluded_terms, $taxonomy, $post )
Paramètres: (5)
  • () where The `WHERE` clause in the SQL.
    Requis: Oui
  • () in_same_term Whether post should be in the same taxonomy term.
    Requis: Oui
  • () excluded_terms Array of excluded term IDs. Empty string if none were provided.
    Requis: Oui
  • () taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true.
    Requis: Oui
  • () post WP_Post object.
    Requis: Oui
Défini(e) dans:
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`




Source

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