How to edit the 'add details' page

I would like to remove some attributes from the ‘add details’ page such as the “booking offset” and “booking window”

Please try this PHP snippet

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		unset($form['fields']['booking_offset']);
		unset($form['fields']['booking_window']);

		return $form;
	},
        200
);
1 Like

I am no programmer so, where exactly should I paste this code?

Please use the Code Snippets plugin to add and manage custom PHP code snippets Code Snippets – WordPress plugin | WordPress.org

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