ACF\AI\GEO
Schema::get_property_range
Get the expected types (range) for a property
Returns the types that a property expects as its value. For example, 'author' expects ['Person', 'Organization']
Method of the class: Schema{}
No Hooks.
Returns
Array. Array of type names, or empty array if not found
Usage
$result = Schema::get_property_range( $property );
- $property(string) (required)
- The property name.
Changelog
| Since 6.8.0 | Introduced. |
Schema::get_property_range() Schema::get property range code ACF 6.8.8
public static function get_property_range( $property ) {
$property_ranges = SchemaData::get_property_ranges();
return $property_ranges[ $property ] ?? array();
}