# propertyhive/2.4.0/templates/single-property/actions.php

Property Hive, version 2.4.0. 66 lines.

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

```php
<?php
/**
 * Single Property Actions (Make Enquiry etc)
 * Editable through use of the filter propertyhive_single_property_actions
 *
 * @author 		PropertyHive
 * @package 	PropertyHive/Templates
 * @version     1.0.0
 */

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

global $post, $property;
?>
<div class="property_actions">

	<?php do_action( 'propertyhive_property_actions_start' ); ?>
    
    <ul>
        
        <?php 
           /**
             * propertyhive_single_property_summary hook
             *
             * @hooked propertyhive_make_enquiry_button - 10
             * 
             */
            do_action( 'propertyhive_property_actions_list_start' ); 
        ?>
        
    	<?php
    	   foreach ($actions as $action)
           {
               $action['class'] = ( isset( $action['class'] ) ) ? $action['class'] : '';
               
               echo '
               <li class="' . esc_attr($action['class']) . '"';
               if ( isset( $action['parent_attributes'] ) && ! empty( $action['parent_attributes'] ) )
               {
                   // 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.
                   foreach ( $action['parent_attributes'] as $key => $value )
                   {
                       echo ' ' . esc_attr( $key ) . '="' . esc_attr($value) . '"';
                   }
               }
               echo '><a href="' . esc_url($action['href']) . '"';
               if ( isset( $action['attributes'] ) && ! empty( $action['attributes'] ) )
               {
                   // 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.
                   foreach ( $action['attributes'] as $key => $value )
                   {
                       echo ' ' . esc_attr( $key ) . '="' . esc_attr($value) . '"';
                   }
               }
               echo '>' . esc_html($action['label']) . '</a></li>
               ';
           }
    	?>
    	
    	<?php do_action( 'propertyhive_property_actions_list_end' ); ?>

    </ul>

	<?php do_action( 'propertyhive_property_actions_end' ); ?>
    
</div>
```
