Checks if metadata exists for a given block name in a specific collection.
Parameters
$file_or_folder
stringrequired- The path to the file or folder containing the block metadata.
Source
public static function has_metadata( $file_or_folder ) {
return null !== self::get_metadata( $file_or_folder );
}
Changelog
Version | Description |
---|---|
6.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.