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的函数,用于检索一个网络中所有站点的特定分类法的所有术语: 该函数将分类法名称作为参数,并返回一个术语对象的数组。

通过将为每个博客创建的术语与全局术语表进行同步,维护术语的规范列表。

function global_terms( $term_id, $deprecated = '' ) {
	_deprecated_function( __FUNCTION__, '6.1.0' );

	return $term_id;
}

常见问题

FAQs
查看更多 >