get_{$adjacent}_post_excluded_terms

过滤钩子


apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms )
参数
  • (int[]|string)
    $excluded_terms
    Array of excluded term IDs. Empty string if none were provided.
    Required:
定义位置
  • wp-includes/link-template.php
    , line 1846
引入
4.4.0
弃用

过滤被排除在相邻职位查询之外的术语的ID。

钩子名称的动态部分,$adjacent,指的是相邻关系的类型,”next”或 “previous”。

可能的钩子名称包括。

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