register_term_meta
函数
      register_term_meta ( $taxonomy, $meta_key, $args )    
  - 参数
 - 
- 
                (string)
$taxonomy
Taxonomy to register a meta key for. Pass an empty string to register the meta key across all existing taxonomies.- Required: 是
 
 - 
                (string)
$meta_key
The meta key to register.- Required: 是
 
 - 
                (array)
$args
Data used to describe the meta key when registered. See {@see} for a list of supported arguments.- Required: 是
 
 
 - 
                (string)
 
- 返回值
 - 
- (bool) True if the meta key was successfully registered, false if not.
 
 
- 定义位置
 - 
- 
                                  wp-includes/taxonomy.php
, line 1466 
 - 
                                  wp-includes/taxonomy.php
 
- 引入
 - 4.9.8
 
- 弃用
 - –
 
Registers a meta key for terms.
function register_term_meta( $taxonomy, $meta_key, array $args ) {
	$args['object_subtype'] = $taxonomy;
	return register_meta( 'term', $meta_key, $args );
}
	声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
		

