Hi,
What are the php snippets for deleting some of the listing attributes. (so we can have fewer when listing a property)
we need the php snippets for:
- Opening hours
- Tags
- Booking offset
- Booking window
- Minimum booking duration
- Maximum booking duration
Thanks in advance!
If you need to hide opening hours and tags fields please try to deactivate HivePress Opening Hours and HivePress Tags plugins
Please try this PHP snippet for booking fields
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
unset( $form['fields']['booking_offset'] );
unset( $form['fields']['booking_window'] );
unset( $form['fields']['booking_min_length'] );
unset( $form['fields']['booking_max_length'] );
return $form;
},
1000
);
1 Like
system
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.