Filters the WHERE clause in the SQL for an adjacent post query.
Description
The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, 'next' or 'previous'. Possible hook names include: <ul> <li>get_next_post_where</li> <li>get_previous_post_where</li> </ul>
Parameters
$wherestring
The WHERE clause in the SQL.
$in_same_termbool
Whether post should be in the same taxonomy term.
$excluded_termsint[]|string
Array of excluded term IDs. Empty string if none were provided.
$taxonomystring
Taxonomy. Used to identify the term used when $in_same_term is true.
1984* @param string$where The `WHERE` clause in the SQL.1985* @param bool$in_same_term Whether post should be in the same taxonomy term.1986* @param int[]|string$excluded_termsArray of excluded term IDs.Emptystringif none were provided.1987* @param string$taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true.1988* @param WP_Post$post WP_Post object.1989*/1990$where=apply_filters("get_{$adjacent}_post_where",$where_prepared,$in_same_term,$excluded_terms,$taxonomy,$post);19911992/**1993* Filters the ORDERBY clause in the SQLfor an adjacent post query.1994*1995* The dynamic portion of the hook name,`$adjacent`, refers to the type1996* of adjacency,'next'or'previous'.
History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.