Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hide the booking offset and window fields in the listing form #hivepress #bookings
<?php
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
unset( $form['fields']['booking_offset'] );
unset( $form['fields']['booking_window'] );
return $form;
},
1000
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment