src/core/class-papi-core-property.php
public function get_child_property( $slug, array $items = [] ) {
		$items = empty( $items ) ? $this->get_child_properties() : $items;

		foreach ( $items as $property ) {
			if ( is_array( $property ) && isset( $property['items'] ) ) {
				$property = $this->get_child_property( $slug, $property['items'] );
			}

			$property = papi_get_property_type( $property );

			if ( papi_is_property( $property ) && $property->match_slug( $slug ) ) {
				return $property;
			}
		}
	}
public function get_child_property( $slug, array $items = [] ) {
		$items = empty( $items ) ? $this->get_child_properties() : $items;

		foreach ( $items as $property ) {
			if ( is_array( $property ) && isset( $property['items'] ) ) {
				$property = $this->get_child_property( $slug, $property['items'] );
			}

			$property = papi_get_property_type( $property );

			if ( papi_is_property( $property ) && $property->match_slug( $slug ) ) {
				return $property;
			}
		}
	}
Get child property.

@param  string $slug
@param  array  $items

@return Papi_Core_Property|null