register_taxonomy_for_object_type()
register_taxonomy_for_object_type( string $taxonomy, string $object_type )
向对象类型添加已注册的分类法。
Add an already registered taxonomy to an object type.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$taxonomy | (string) | 分类对象的名称。 |
$object_type | (string) | 对象类型的名称。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/taxonomy.php | 5 | 4 |
笔记(Notes)
例子
register_taxonomy_for_object_type() 为WP2原创文章,链接:https://www.wp2.cn/functions/register_taxonomy_for_object_type-2/