Short-circuits updating the metadata cache of a specific type.
Description
The dynamic portion of the hook name, $meta_type, refers to the meta object type (blog, 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 hook names include: <ul> <li>update_blog_metadata_cache</li> <li>update_post_metadata_cache</li> <li>update_comment_metadata_cache</li> <li>update_term_metadata_cache</li> <li>update_user_metadata_cache</li> </ul>
Parameters
$checkmixed
Whether to allow updating the meta cache of the given type.
1172*1173* @since 5.0.01174*1175* @param mixed$check Whether to allow updating the meta cache of the given type.1176* @param int[]$object_idsArray of object IDs to update the meta cache for.1177*/1178$check=apply_filters("update_{$meta_type}_metadata_cache",null,$object_ids);1179if(null!==$check){1180return(bool)$check;1181}11821183$cache_group=$meta_type.'_meta';1184$non_cached_ids=array();
History
Introduced in 5.0.0. Unchanged from 6.7.7 through 7.1.0.