更新术语ID列表的元数据缓存。
原型
update_termmeta_cache( array $term_ids )
描述
执行SQL查询以检索与$ term_ids匹配的术语的所有元数据,并将它们存储在缓存中。对get_term_meta()的后续调用不需要查询数据库。
参数
$term_ids
(array)
(Required)
术语ID列表。
返回值
(array|false)
如果没有要更新的内容,则返回false。成功返回元数据数组。
源文件
路径:wp-includes/taxonomy.php
<?php
...
function update_termmeta_cache( $term_ids ) {
return update_meta_cache( 'term', $term_ids );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/update_termmeta_cache/