# propertyhive/2.2.2/includes/avada-widgets/property-actions-shortcode.php

Property Hive, version 2.2.2. 33 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.2.2/code/includes/avada-widgets/property-actions-shortcode.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.2.2/raw/includes/avada-widgets/property-actions-shortcode.php
- Modified: 2025-04-01T10:48:54+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.2.2/code/includes/avada-widgets/property-actions-shortcode.php#L10-L20`.

```php
<?php

add_shortcode( 'avada_property_actions', function( $atts ) {
    $atts = shortcode_atts( array(

    ), $atts );

    if ( get_post_type( get_the_ID() ) != 'property' )
    {
    	return '';
    }

    fusion_element_rendering_elements( true );

    global $property;
    
    if ( empty($property) )
    {
        $property = new PH_Property(get_the_ID());
    }

    ob_start();

    echo '<div ' . FusionBuilder::attributes( 'property-actions-shortcode' ) . '>';
        propertyhive_template_single_actions();
    echo '</div>';

    $html = ob_get_clean();

    fusion_element_rendering_elements( false );

    return $html;
});
```
