In the listing a property page, I would like to remove the option that says ‘manually accept new bookings’.
Please try this PHP snippet
add_filter(
'hivepress/v1/models/listing/attributes',
function( $attributes ) {
if ( isset($attributes['booking_moderated']) ) {
// Hide Booking Requests.
$attributes['booking_moderated']['editable'] = false;
}
return $attributes;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.