get_{$adjacent}_post_join

get_{$adjacent}_post_join

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_{$adjacent}_post_join') is found 1 times:

  • /wp-includes/link-template.php line 1961
    1957
    1958
    1959
    1960
    1961
    1962
    1963
    1964
    1965
    1966
    1967
    * @param int[]|string $excluded_terms Array of excluded term IDs. Empty string if none were provided.
     * @param string       $taxonomy       Taxonomy. Used to identify the term used when `$in_same_term` is true.
     * @param WP_Post      $post           WP_Post object.
     */
    $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy, $post );
     
    /**
     * 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'.