Function: update_termmeta_cache

update_termmeta_cache( array $term_ids )

Updates metadata cache for list of term IDs.

Shortcut: utc

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

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

Name Type(s) Default Value Description
$term_ids array

List of term IDs.

Returns

array | false

Returns false if there is nothing to update. Returns an array of metadata on success.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.