函数原型
global_terms( int $term_id, string $deprecated = ” ): int
函数描述
Maintains a canonical list of terms by syncing terms created for each blog with the global terms table.
是否弃用
Warning: This function has been deprecated.
函数参数
-
$term_id
int
Required - An ID for a term on the current blog.
-
$deprecated
string
Optional - Not used.
Default:
''
函数返回值
int An ID from the global terms table mapped from $term_id.
函数位置
File: wp-includes/ms-deprecated.php.
函数源码
function global_terms( $term_id, $deprecated = '' ) {
_deprecated_function( __FUNCTION__, '6.1.0' );
return $term_id;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 6.1.0 | This function has been deprecated. |
| 3.0.0 | Introduced. |

