wp-includes/class-wp-block-metadata-registry.php:219Checks if metadata exists for a given block name in a specific collection.
$file_or_folderstringbool public static function has_metadata( $file_or_folder ) { return null !== self::get_metadata( $file_or_folder ); }Introduced in 6.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-block-metadata-registry.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.