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.
$term_idsarrayrequired
function update_termmeta_cache( $term_ids ) {
return update_meta_cache( 'term', $term_ids );
}
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_termmeta_cache