# propertyhive/2.3.0/templates/single-property/description.php

Property Hive, version 2.3.0. 32 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.3.0/code/templates/single-property/description.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.3.0/raw/templates/single-property/description.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.3.0/code/templates/single-property/description.php#L10-L20`.

```php
<?php
/**
 * Single Property Description, also known as the full description
 *
 * @author      PropertyHive
 * @package     PropertyHive/Templates
 * @version     1.0.0
 */

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

global $post, $property;

// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
$description = $property->get_formatted_description();

if ( trim(wp_strip_all_tags($description)) != '' )
{
?>
<div class="description">
    
    <h4><?php echo esc_html(__( 'Full Details', 'propertyhive' )); ?></h4>
    
    <div class="description-contents"><?php
        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Stored description fields are sanitized before the trusted propertyhive_get_detail and propertyhive_description_output HTML extension hooks; preserve their embed output.
        echo $description;
    ?></div>

</div>
<?php
}
?>
```
