clean_object_term_cache

SummerySummery

Removes the taxonomy relationship to terms from the cache.

Syntax

clean_object_term_cache( int|array $object_ids, array|string $object_type )

DescriptionDescription

Will remove the entire taxonomy relationship containing term $object_id. The term IDs have to exist within the taxonomy $object_type for the deletion to take place.

ParametersParameters

$object_ids

(int|array) (Required) Single or list of term object ID(s).

$object_type

(array|string) (Required) The taxonomy object type.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.

See alsoSee also

Scroll to Top