
构建自定义古腾堡区块:权威WordPress区块开发教程
update_termmeta_cache ( $term_ids )
update_termmeta_cache: 这个函数更新分类法术语元数据的缓存。它通常在术语的元数据被更新后被调用,比如当一个插件设置被改变时。
更新术语ID列表的元数据缓存。
执行SQL查询,检索与`$term_ids`匹配的术语的所有元数据,并将它们存储在缓存中。以后调用`get_term_meta()`就不需要再查询数据库了。
function update_termmeta_cache( $term_ids ) { return update_meta_cache( 'term', $term_ids ); }