get_{$adjacent}_post_excluded_terms WordPress Filter Hook

The get_{$adjacent}_post_excluded_terms hook is used to get the excluded terms for the adjacent post.

apply_filters( "get_{$adjacent}_post_excluded_terms", array|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_terms
  • get_previous_post_excluded_terms

Top ↑

Parameters

$excluded_terms

(array|string)Array of excluded term IDs. Empty string if none were provided.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More