global_terms

函式
global_terms ( $term_id, $deprecated = '' )
引數
  • (int) $term_id An ID for a term on the current blog.
    Required:
  • (string) $deprecated Not used.
    Required:
    Default: (empty)
返回值
  • (int) An ID from the global terms table mapped from $term_id.
定義位置
相關方法
global_terms_enabledinstall_global_termsget_termshas_termget_term
引入
3.0.0
棄用
6.1.0

global_terms: 這是一個WordPress的函式,用於檢索一個網路中所有站點的特定分類法的所有術語: 該函式將分類法名稱作為引數,並返回一個術語物件的陣列。

通過將為每個部落格建立的術語與全域性術語表進行同步,維護術語的規範列表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function global_terms( $term_id, $deprecated = '' ) {
_deprecated_function( __FUNCTION__, '6.1.0' );
return $term_id;
}
function global_terms( $term_id, $deprecated = '' ) { _deprecated_function( __FUNCTION__, '6.1.0' ); return $term_id; }
function global_terms( $term_id, $deprecated = '' ) {
	_deprecated_function( __FUNCTION__, '6.1.0' );

	return $term_id;
}

常見問題

FAQs
檢視更多 >