> For the complete documentation index, see [llms.txt](https://ovatheme.gitbook.io/brw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ovatheme.gitbook.io/brw/faqs/hide-other-rental-type-when-create-a-product.md).

# Hide other Rental Type when create a product

<figure><img src="/files/co0s5HfzUNYDxKndXsG0" 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' )
	];
});
```
