'object', 'properties' => [ 'year' => [ 'type' => 'integer', 'description' => __( 'The date year', 'tribe-common' ), ], 'month' => [ 'type' => 'integer', 'description' => __( 'The date month', 'tribe-common' ), ], 'day' => [ 'type' => 'integer', 'description' => __( 'The date day', 'tribe-common' ), ], 'hour' => [ 'type' => 'integer', 'description' => __( 'The date hour', 'tribe-common' ), ], 'minutes' => [ 'type' => 'integer', 'description' => __( 'The date minutes', 'tribe-common' ), ], 'seconds' => [ 'type' => 'integer', 'description' => __( 'The date seconds', 'tribe-common' ), ], ], ]; /** * Filters the Swagger documentation generated for an date 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_date_details_documentation', $documentation ); return $documentation; } }