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

13 lines
362 B
PHP

<?php
add_action('mep_event_price','mep_ev_price');
function mep_ev_price(){
global $event_meta;
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 get_woocommerce_currency_symbol().$event_meta['_price'][0]; ?>
<?php } else{ echo ''; }
}