# Hide other Rental Type when create a product

<figure><img src="https://4082525133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa2OkFafBNY1uvQO4naAL%2Fuploads%2F999901J2zV4IdAsG7dgK%2FScreenshot%202024-12-06%20at%2012.05.15.png?alt=media&#x26;token=4c85c2ce-714f-4c7a-8fc6-4c184f82c90f" alt=""><figcaption></figcaption></figure>

You can add bellow code to functions.php file in child theme

### 1) Code display all rental type

```
add_filter( 'ovabrw_rental_selector', function( $rental_type ) {
	return [
		'day'				=> esc_html__( '1: Day', 'ova-brw' ),
		'hour'				=> esc_html__( '2: Hour', 'ova-brw' ),
		'mixed'				=> esc_html__( '3: Mixed (Day and Hour)', 'ova-brw' ),
		'period_time' 		=> esc_html__( '4: Period of Time ( 05:00 am - 10:00 am, 1 day, 2 days, 1 month, 6 months, 1 year... )', 'ova-brw' ),
		'transportation' 	=> esc_html__( '5: Transportation', 'ova-brw' ),
		'taxi' 				=> esc_html__( '6: Taxi', 'ova-brw' ),
		'hotel' 			=> esc_html__( '7: Hotel', 'ova-brw' ),
		'appointment' 		=> esc_html__( '8: Appointment', 'ova-brw' )
	];
});
```

### 2) If you want to remove taxi, hotel, you can use bellow code

```
add_filter( 'ovabrw_rental_selector', function( $rental_type ) {
	return [
		'day'				=> esc_html__( '1: Day', 'ova-brw' ),
		'hour'				=> esc_html__( '2: Hour', 'ova-brw' ),
		'mixed'				=> esc_html__( '3: Mixed (Day and Hour)', 'ova-brw' ),
		'period_time' 		=> esc_html__( '4: Period of Time ( 05:00 am - 10:00 am, 1 day, 2 days, 1 month, 6 months, 1 year... )', 'ova-brw' ),
		'transportation' 	=> esc_html__( '5: Transportation', 'ova-brw' ),
		'appointment' 		=> esc_html__( '8: Appointment', 'ova-brw' )
	];
});
```
