update_meta_cache

SummerySummery

Updates the metadata cache for the specified objects.

Syntax

update_meta_cache( string $meta_type, string|int[] $object_ids )

ParametersParameters

$meta_type

(string) (Required) Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

$object_ids

(string|int[]) (Required) Array or comma delimited list of object IDs to update cache for.

ReturnReturn

(array|false) Metadata cache for the specified objects, or false on failure.

SourceSource

File: wp-includes/meta.php


			

ChangelogChangelog

Changelog
Version Description
2.9.0 Introduced.
Scroll to Top