取消注册术语的元键。
原型
unregister_term_meta( string $taxonomy, string $meta_key )
参数
$taxonomy
(string)
(Required)
元密钥当前注册的分类法。如果在所有现有分类中注册了元键,则传递空字符串。
$meta_key
(string)
(Required)
取消注册的元键。
返回值
(bool)
成功时为true,如果以前未注册元键,则为false。
源文件
路径:wp-includes/taxonomy.php
<?php
...
function unregister_term_meta( $taxonomy, $meta_key ) {
return unregister_meta_key( 'term', $meta_key, $taxonomy );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/unregister_term_meta/