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:
定義位置
相關勾子
get_adjacent_post_whereget_adjacent_post_sortget_adjacent_post_joinadjacent_post_linkget_post_modified_time
相關方法
get_adjacent_post_linkget_adjacent_postget_adjacent_post_rel_linkadjacent_post_linkget_post_embed_htmlget_available_post_mime_types
引入
4.4.0
棄用
-

get_{$adjacent}_post_excluded_terms: 此函式用於檢索獲取相鄰文章的查詢中排除條款的SQL語句。

過濾被排除在相鄰職位查詢之外的術語的ID。

鉤子名稱的動態部分,$adjacent,指的是相鄰關係的型別,”next”或”previous”。

可能的鉤子名稱包括。

  • get_next_post_excluded_terms
  • get_previous_post_excluded_terms
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms );
$excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms );
$excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms );

常見問題

FAQs
檢視更多 >