# propertyhive/2.4.0/templates/global/search-form.php

Property Hive, version 2.4.0. 33 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.4.0/code/templates/global/search-form.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.4.0/raw/templates/global/search-form.php
- Modified: 2026-09-16T09:29:48+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/templates/global/search-form.php#L10-L20`.

```php
<?php
/**
 * Property search form
 *
 * @author      PropertyHive
 * @package     PropertyHive/Templates
 * @version     1.0.0
 */

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

<?php do_action( 'propertyhive_before_search_form', $id ); ?>

<form name="ph_property_search" class="property-search-form property-search-form-<?php echo esc_attr($id); ?> clear" action="<?php echo esc_url( apply_filters( 'propertyhive_search_form_action', get_post_type_archive_link( 'property' ) ) ); ?>" method="get" role="form">

    <?php do_action( 'propertyhive_before_search_form_controls', $id, $form_controls ); ?>

    <?php foreach ( $form_controls as $propertyhive_key => $propertyhive_field ) : ?>

        <?php ph_form_field( $propertyhive_key, $propertyhive_field ); ?>

    <?php endforeach; ?>

    <?php do_action( 'propertyhive_after_search_form_controls', $id, $form_controls ); ?>

    <input type="submit" value="<?php echo esc_attr__( 'Search', 'propertyhive' ); ?>">

    <?php do_action( 'propertyhive_after_search_form_submit', $id, $form_controls ); ?>

</form>

<?php do_action( 'propertyhive_after_search_form', $id ); ?>
```
