Updates metadata cache for list of term IDs.
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
$term_ids
arrayrequired- List of term IDs.
Source
function update_termmeta_cache( $term_ids ) {
return update_meta_cache( 'term', $term_ids );
}
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.