update_object_term_cache

SummerySummery

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

Syntax

update_object_term_cache( string|int[] $object_ids, string|string[] $object_type )

DescriptionDescription

Note: Due to performance concerns, great care should be taken to only update term caches when necessary. Processing time can increase exponentially depending on both the number of passed term IDs and the number of taxonomies those terms belong to.

Caches will only be updated for terms not already cached.

ParametersParameters

$object_ids

(string|int[]) (Required) Comma-separated list or array of term object IDs.

$object_type

(string|string[]) (Required) The taxonomy object type or array of the same.

ReturnReturn

(void|false) False if all of the terms in $object_ids are already cached.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top