Short-circuits the return value when fetching a meta field 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>get_blog_metadata_by_mid</li> <li>get_post_metadata_by_mid</li> <li>get_comment_metadata_by_mid</li> <li>get_term_metadata_by_mid</li> <li>get_user_metadata_by_mid</li> </ul>
848*849* @since 5.0.0850*851* @param stdClass|null$value The value to return.852* @param int$meta_id Meta ID.853*/854$check=apply_filters("get_{$meta_type}_metadata_by_mid",null,$meta_id);855if(null!==$check){856return$check;857}858859$id_column=('user'===$meta_type)?'umeta_id':'meta_id';860
History
Introduced in 5.0.0. Unchanged from 6.7.7 through 7.1.0.