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. Returns false if there is nothing to update. Returns an array of metadata on success.


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

Code of update termmeta cache: wp-includes/taxonomy.php WP 5.2.1

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