update_termmeta_cache

SummerySummery

Updates metadata cache for list of term IDs.

Syntax

update_termmeta_cache( array $term_ids )

DescriptionDescription

Performs SQL query to retrieve all metadata for the terms matching $term_ids and stores them in the cache. Subsequent calls to get_term_meta() will not need to query the database.

ParametersParameters

$term_ids

(array) (Required) List of term IDs.

ReturnReturn

(array|false) Returns false if there is nothing to update. Returns an array of metadata on success.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top