'object', 'properties' => [ 'currency_symbol' => [ 'type' => 'string', 'description' => __( 'The cost currency symbol', 'tribe-common' ), ], 'currency_position ' => [ 'type' => 'string', 'description' => __( 'The position of the currency symbol in the cost string', 'tribe-common' ), 'enum' => [ 'prefix', 'postfix' ], ], 'values' => [ 'type' => 'array', 'items' => [ 'type' => 'integer' ], 'description' => __( 'A sorted array of all the numeric values for the cost', 'tribe-common' ), ], ], ]; /** * Filters the Swagger documentation generated for a cost details in the TEC REST API. * * @param array $documentation An associative PHP array in the format supported by Swagger. * * @link http://swagger.io/ */ $documentation = apply_filters( 'tribe_rest_swagger_cost_details_documentation', $documentation ); return $documentation; } }