Ability to remove the accept/reject booking option for hosts

When someone wants to book a listing, is there a way where the booking can’t be approved until we, the admins, approve it? - Hiding the Accept/Reject functionality on the front-end (so only admins will be able to accept or reject bookings), in this case hosts wouldn’t be able to accept/reject bookings on their own.

Would someone be able to provide a code snippet for this?

Please try this PHP snippet

add_filter(
	'hivepress/v1/templates/booking_view_page',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'booking_accept_link' => [
						'type' => 'content',
					],
					
					'booking_decline_link' => [
						'type' => 'content',
					],
				],
			]
		);
	},
	1000
);
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.