Filters the JOIN 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_join</li> <li>get_previous_post_join</li> </ul>
Parameters
$joinstring
The JOIN 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.
1955* @param string$join The JOIN clause in the SQL.1956* @param bool$in_same_term Whether post should be in the same taxonomy term.1957* @param int[]|string$excluded_termsArray of excluded term IDs.Emptystringif none were provided.1958* @param string$taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true.1959* @param WP_Post$post WP_Post object.1960*/1961$join=apply_filters("get_{$adjacent}_post_join",$join,$in_same_term,$excluded_terms,$taxonomy,$post);19621963/**1964* Filters the WHERE clause in the SQLfor an adjacent post query.1965*1966* The dynamic portion of the hook name,`$adjacent`, refers to the type1967* of adjacency,'next'or'previous'.
History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.