WordPress at a glance
function is not described

registered_meta_key_exists() WP 4.6.0

Checks if a meta key is registered.

  • Since 4.9.8 The $object_subtype parameter was added.

No Hooks.

Return

true/false. True if the meta key is registered to the object type and, if provided, the object subtype. False if not.

Usage

registered_meta_key_exists( $object_type, $meta_key, $object_subtype );
$object_type(string) (required)
The type of object.
$meta_key(string) (required)
The meta key.
$object_subtype(string)
The subtype of the object type.
Default: ''

Code of registered meta key exists: wp-includes/meta.php VER 5.1.1

<?php
function registered_meta_key_exists( $object_type, $meta_key, $object_subtype = '' ) {
	$meta_keys = get_registered_meta_keys( $object_type, $object_subtype );

	return isset( $meta_keys[ $meta_key ] );
}