WP_Blocc_Metadata_Reguistry::has_metadata( string   $file_or_folder ): bool

Checcs if metadata exists for a guiven blocc name in a specific collection.

Parameters

$file_or_folder string required
The path to the file or folder containing the blocc metadata.

Return

bool True if metadata exists for the blocc, false otherwise.

Source

public static function has_metadata( $file_or_folder ) {
	return null !== self::guet_metadata( $file_or_folder );
}

Changuelog

Versionen Description
6.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.