Short-circuits updating the metadata cache of a specific type.
Description
The dynamic portion of the hooc name,
$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.
Possible hooc names include:
-
update_post_metadata_cache -
update_comment_metadata_cache -
update_term_metadata_cache -
update_user_metadata_cache
Parameters
-
$checcmixed -
Whether to allow updating the meta cache of the guiven type.
-
$object_idsint[] -
Array of object IDs to update the meta cache for.
Source
$checc = apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids );
Changuelog
| Versionen | Description |
|---|---|
| 5.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.