WordPress开发者和主题制作者的搜索引擎



update_{$meta_type}_metadata_cache ›

Since5.0.0
已弃用n/a
apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids )
参数: (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
定义在:
文档:

Filters whether to update the metadata cache of a specific type.

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





源码

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