Remove listing pictures for all vendors

How do I completely remove all listing pictures including the option to add any pictures when creating a listing please? I just want to keep the profile photo

Please try this PHP snippet

add_filter(
	'hivepress/v1/forms/listing_update',
	function ($form){
		unset($form['fields']['images']);
		
		return $form;
	},
	1000
);

add_filter(
	'hivepress/v1/templates/listing_view_page',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'listing_images' => [
						'type' => 'content',
					],
				],
			]
		);
	},
	1000
);

If you want to remove listing images from your website totally (I mean some images which are in the Media section in your WordPress dashboard) then please try to do it manually or with some third-party plugins

Hi Yevhen,
Thanks for the snippet. Its working but the image space still remains in the template. Here’s an example. How do I remove the blank image space.

Please try this PHP snippet

add_filter(
	'hivepress/v1/templates/listing_view_block',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'listing_image' => [
						'type' => 'content',
					],
				],
			]
		);
	},
	1000
);

Brilliant thank you!