Function: _prime_term_caches

_prime_term_caches( array $term_ids, boolean $update_meta_cache )

Adds any terms from the given IDs to the cache that do not already exist in cache.

Shortcut: ptc

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.


Name Type(s) Default Value Description
$term_ids array

Array of term IDs.

$update_meta_cache boolean true

Optional. Whether to update the meta cache. Default true.

WordPress Developer Newsletter

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