wpseek.com
WordPress开发者和主题制作者的搜索引擎



update_termmeta_cache › WordPress Function

Since4.4.0
已弃用n/a
update_termmeta_cache ( $term_ids )
参数:
  • (array) $term_ids List of term IDs.
    Required: Yes
返回:
  • (array|false) An array of metadata on success, false if there is nothing to update.
定义在:
文档:

Updates metadata cache for list of term IDs.

Performs SQL query to retrieve all metadata for the terms matching $term_ids and stores them in the cache. Subsequent calls to get_term_meta() will not need to query the database.


源码

function update_termmeta_cache( $term_ids ) {
	return update_meta_cache( 'term', $term_ids );
}