mage-eventpress/inc/template-prts/price.php

14 lines
422 B
PHP
Raw Normal View History

2020-01-22 07:15:24 -05:00
<?php
add_action('mep_event_price','mep_ev_price');
function mep_ev_price(){
2020-03-19 08:34:31 -04:00
global $post,$event_meta;
ob_start();
if($event_meta['_price'][0]>0){
if($event_meta['mep_price_label'][0]){ ?>
<h3><?php echo $event_meta['mep_price_label'][0]; ?>: </h3>
<?php }
echo wc_price($event_meta['_price'][0]);
}
$content = ob_get_clean();
echo apply_filters('mage_event_single_price', $content,$post->ID);
2020-01-22 07:15:24 -05:00
}