ACF\AI\GEO

SchemaData::get_type_hierarchypublic staticACF 6.8.0

Get the type hierarchy mapping

Maps each type to its parent type in the schema.org hierarchy. For example: 'Recipe' => 'HowTo'

Method of the class: SchemaData{}

No Hooks.

Returns

Array.

Usage

$result = SchemaData::get_type_hierarchy(): array;

Changelog

Since 6.8.0 Introduced.

SchemaData::get_type_hierarchy() code ACF 6.8.8

public static function get_type_hierarchy(): array {
	if ( self::$type_hierarchy === null ) {
		self::$type_hierarchy = require __DIR__ . '/data/type-hierarchy.php';
	}
	return self::$type_hierarchy;
}