WPDev.one
Core Function
View Source on Trac ↗

update_meta_cache()

update_meta_cache( mixed $meta_type, mixed $object_ids )

Updates the metadata cache for the specified objects.

Parameters 2 required

Name / Type Description
string

$meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

Required
(string

| int[]) $object_ids Array or comma delimited list of object IDs to update cache for.

Required

Return Value

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

Function Information

Since Version
2.9.0
Source File
wp-includes/meta.php
Advertisement