apply_filters( “get_{$adjacent}_post_excluded_terms”, int[]|string $excluded_terms )

In this article

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_terms
  • get_previous_post_excluded_terms

Parameters

$excluded_termsint[]|string
Array of excluded term IDs. Empty string if none were provided.

Source

$excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.