# 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' )
	];
});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ovatheme.gitbook.io/brw/faqs/hide-other-rental-type-when-create-a-product.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
