WPDev.one
Core Function
View Source on Trac ↗

update_object_term_cache()

update_object_term_cache( mixed $object_ids, mixed $object_type )

Updates the cache for the given term object ID(s).

Parameters 2 required

Name / Type Description
(string

| int[]) $object_ids Comma-separated list or array of term object IDs.

Required
(string

| string[]) $object_type The taxonomy object type or array of the same.

Required

Return Value

((void)
(void | false) Void on success or if the `$object_ids` parameter is empty, false if all of the terms in `$object_ids` are already cached.

Function Information

Since Version
2.3.0
Source File
wp-includes/taxonomy.php
Advertisement