On this page
apply_filters( "get_{$adjacent}_post_excluded_terms", int[]|string $excluded_terms )
Filters the IDs of terms excluded from adjacent post queries.
Description
The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, ‘next’ or ‘previous’.
Possible hook names include:
get_next_post_excluded_termsget_previous_post_excluded_terms
Parameters
$excluded_termsint[]|string-
Array of excluded term IDs. Empty string if none were provided.
Source
File: wp-includes/link-template.php. View all references
$excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms );
Related
Used By
| Used By | Description |
|---|---|
| get_adjacent_post() wp-includes/link-template.php | Retrieves the adjacent post. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_adjacent_post_excluded_terms