Title: update_termmeta_cache
Published: December 9, 2015
Last modified: February 24, 2026

---

# update_termmeta_cache( array $term_ids ): array|false

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#wp--skip-link--target)

Updates metadata cache for list of term IDs.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#description)󠁿

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.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#parameters)󠁿

 `$term_ids`arrayrequired

List of term IDs.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#return)󠁿

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

## 󠀁[Source](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/taxonomy.php#L1496)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/taxonomy.php#L1496-L1498)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#related)󠁿

| Uses | Description | 
| [update_meta_cache()](https://developer.wordpress.org/reference/functions/update_meta_cache/)`wp-includes/meta.php` |

Updates the metadata cache for the specified objects.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/update_termmeta_cache/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fupdate_termmeta_cache%2F)
before being able to contribute a note or feedback.