A WordPress-centric search engine for devs and theme authors

update_{$meta_type}_metadata_cache ›

apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids )
Parameters: (2)
  • (mixed) $check Whether to allow updating the meta cache of the given type.
    Required: Yes
  • (int[]) $object_ids Array of object IDs to update the meta cache for.
    Required: Yes
Defined at:

Short-circuits updating the metadata cache of a specific type.

The dynamic portion of the hook, $meta_type, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table). Returning a non-null value will effectively short-circuit the function.


$check = apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids );