Function: update_term_cache

update_term_cache( array $terms, string $taxonomy )

Updates Terms to Taxonomy in cache.

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.

Parameters

Name Type(s) Default Value Description
$terms array

List of term objects to change.

$taxonomy string ''

Optional. Update Term to this taxonomy in cache. Default empty.

WordPress Developer Newsletter

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