1. Docs
  2. Developer Guide
  3. Miscellaneous and Snippets
  4. Add Mortgage and Stamp Duty Calculators as Extra Actions on Property

Add Mortgage and Stamp Duty Calculators as Extra Actions on Property

add_action('propertyhive_property_actions_list_end', 'add_calc_action_buttons');
function add_calc_action_buttons()
{
?>
<li><a data-src="#mortgage_calculator" href="javascript:;" data-fancybox>Mortgage Calculator</a></li>
<li><a href="#stamp_duty_calculator" data-fancybox>Stamp Duty Calculator</a></li>

<div id="mortgage_calculator" style="display: none;"><?php echo do_shortcode('[mortgage_calculator]'); ?></div>
<div id="stamp_duty_calculator" style="display: none;"><?php echo do_shortcode('[stamp_duty_calculator]'); ?></div>
<?php
}
Was this article helpful to you? Yes No