# propertyhive/2.4.0/includes/salient-widgets/property-search-form-html.php

Property Hive, version 2.4.0. 10 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.4.0/code/includes/salient-widgets/property-search-form-html.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.4.0/raw/includes/salient-widgets/property-search-form-html.php
- Modified: 2024-04-11T11:02:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/2.4.0/code/includes/salient-widgets/property-search-form-html.php#L10-L20`.

```php
<?php 

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

extract(shortcode_atts(array(
	"form_id" => "default", 
	"default_department" => "", 
), $atts));

echo do_shortcode('[property_search_form id="' . ( ( isset($atts['form_id']) && !empty($atts['form_id']) ) ? $atts['form_id'] : 'default' ) . '"' . ( ( isset($atts['default_department']) && !empty($atts['default_department']) ) ? ' default_department="' . $atts['default_department'] . '"' : '' ) . ']');
```
