Short-circuits updating metadata of a specific type by meta ID.
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_by_mid</li> <li>update_post_metadata_by_mid</li> <li>update_comment_metadata_by_mid</li> <li>update_term_metadata_by_mid</li> <li>update_user_metadata_by_mid</li> </ul>
Parameters
$checknull|bool
Whether to allow updating metadata for the given type.
925*926* @param null|bool$check Whether to allow updating metadata for the given type.927* @param int$meta_id Meta ID.928* @param mixed$meta_value Meta value. Must be serializable if non-scalar.929* @param string|false$meta_key Meta key,if provided.930*/931$check=apply_filters("update_{$meta_type}_metadata_by_mid",null,$meta_id,$meta_value,$meta_key);932if(null!==$check){933return(bool)$check;934}935936// Fetch the meta and go on if it's found.937$meta=get_metadata_by_mid($meta_type,$meta_id);
History
Introduced in 5.0.0. Unchanged from 6.7.7 through 7.1.0.