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.
1985* @param string$where The `WHERE` clause in the SQL.1986* @param bool$in_same_term Whether post should be in the same taxonomy term.1987* @param int[]|string$excluded_termsArray of excluded term IDs.Emptystringif none were provided.1988* @param string$taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true.1989* @param WP_Post$post WP_Post object.1990*/1991$where=apply_filters("get_{$adjacent}_post_where",$where_prepared,$in_same_term,$excluded_terms,$taxonomy,$post);19921993/**1994* Filters the ORDERBY clause in the SQLfor an adjacent post query.1995*1996* The dynamic portion of the hook name,`$adjacent`, refers to the type1997* of adjacency,'next'or'previous'.
History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.