registered_meta_key_exists
registered_meta_key_exists ( $object_type, $meta_key, $object_subtype = '' )
Parameters:- (string) object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
- (string) meta_key Metadata key.
- (string) object_subtype Optional. The subtype of the object type. Default empty string.
Returns:- (bool) True if the meta key is registered to the object type and, if provided, the object subtype. False if not.
Defined at:Change Log: - Introduced in WordPress: 4.6.0
- Deprecated in WordPress: —
Description
Checks if a meta key is registered.