Customising the review form

Sorry for the misunderstanding. Please try this PHP snippet instead. In this way, adding other fields to the form and saving their value after submitting the form is possible. This code snippet only adds fields to the review submit form and saves their values in the database.

add_filter(
	'hivepress/v1/models/review',
	function($fields){
		$fields['fields']['clicks_ordered'] = [
			'label'	=> 'Clicks Ordered',
			'type'	=> 'number',
			'min_value'	=> 0,
			'required'	=> true,
			'_external' => true,
			'_order'	=> 10,
		];
		
		return $fields;
	},
	1000
);

add_filter(
	'hivepress/v1/forms/review_submit',
	function($fields){
		$fields['fields']['clicks_ordered'] = [
			'_order'	=> 30,
		];
		
		return $fields;
	},
	1000
);

It requires advanced customization if you want to show their values in the single review block on the listing page. Please use this PHP code snippet as an example. It shows the field clicks_ordered in the review block

add_filter(
	'hivepress/v1/templates/review_view_block/blocks',
	function($blocks, $template){
		$review = $template->get_context('review');
		
		if(!$review){
			return $blocks;
		}
		
		return hivepress()->template->merge_blocks(
			$blocks,
			[
				'review_content' => [
					'blocks' => [
						'custom_clicks_ordered' => [
							'type' => 'content',
							'content' => '<strong>Clicks ordered field content:</strong> '.$review->get_clicks_ordered(),
							'_order' => 30,
						]	
					],
				],
			],
		);
	},
	1000,
	2
);