ACF\AI\GEO
SchemaData::get_type_hierarchy
Get the type hierarchy mapping
Maps each type to its parent type in the schema.org hierarchy. For example: 'Recipe' => 'HowTo'
Метод класса: SchemaData{}
Хуков нет.
Возвращает
array.
Использование
$result = SchemaData::get_type_hierarchy(): array;
Список изменений
| С версии 6.8.0 | Введена. |
Код SchemaData::get_type_hierarchy() SchemaData::get type hierarchy 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;
}