Uses
| Uses | Description |
|---|---|
| wp-includes/meta.php: update_meta_cache() | Updates the metadata cache for the specified objects. |
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.
(array) (Required) List of term IDs.
(array|false) An array of metadata on success, false if there is nothing to update.
File: wp-includes/taxonomy.php
function update_termmeta_cache( $term_ids ) {
return update_meta_cache( 'term', $term_ids );
} | Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_termmeta_cache