WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1737 | * Filters the IDs of terms excluded from adjacent post queries. |
1738 | * |
1739 | * The dynamic portion of the hook name, `$adjacent`, refers to the type |
1740 | * of adjacency, 'next' or 'previous'. |
1741 | * |
1742 | * @since 4.4.0 |
1743 | * |
1744 | * @param array $excluded_terms Array of excluded term IDs. |
1745 | */ |
1746 | $excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms ); |
1747 |
|
1748 | if ( $in_same_term || ! empty( $excluded_terms ) ) { |
1749 | if ( $in_same_term ) { |
1750 | $join .= " INNER JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN $wpdb->term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id"; |
1751 | $where .= $wpdb->prepare( 'AND tt.taxonomy = %s', $taxonomy ); |
1752 |
|
1753 | if ( ! is_object_in_taxonomy( $post->post_type, $taxonomy ) ) { |
1754 | return ''; |
1755 | } |