WordPress at a glance
function is not described

update_termmeta_cache() WP 4.4.0

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.

No Hooks.


Array|false. An array of metadata on success, false if there is nothing to update.


update_termmeta_cache( $term_ids );
$term_ids(array) (required)
List of term IDs.


Since 4.4.0 Introduced.

Code of update_termmeta_cache() WP 5.7.2

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