Please try this PHP snippet. It will hide the booking deposit field for vendors
add_action('hivepress/v1/models/listing/create', function($listing_id) {
if ( get_option( 'hp_booking_enable_deposit' ) ) {
update_post_meta($listing_id, 'hp_booking_deposit', '1');
}
});
add_filter( 'hivepress/v1/models/listing/attributes', 'hide_deposit_attribute_custom', 1000 );
add_filter( 'hivepress/v1/models/vendor/attributes', 'hide_deposit_attribute_custom', 1000 );
function hide_deposit_attribute_custom($attributes){
if(isset($attributes['booking_deposit'])){
$attributes['booking_deposit']['editable'] = false;
}
return $attributes;
}