2018-07-02 05:44:24 -04:00
< ? php
add_action ( 'mep_event_date' , 'mep_ev_datetime' );
function mep_ev_datetime (){
global $event_meta ;
?>
2018-09-14 01:20:47 -04:00
< p >< ? php echo date ( 'D, d M Y h:i A' , strtotime ( $event_meta [ 'mep_event_start_date' ][ 0 ])); ?> - <?php echo date('D, d M Y h:i A', strtotime($event_meta['mep_event_end_date'][0])); ?></p>
2018-07-02 05:44:24 -04:00
< ? php
}
2018-09-14 01:20:47 -04:00
2018-07-02 05:44:24 -04:00
add_action ( 'mep_event_date_only' , 'mep_ev_date' );
function mep_ev_date (){
global $event_meta ;
?>
2018-09-14 01:20:47 -04:00
< p >< ? php echo date ( 'd M Y' , strtotime ( $event_meta [ 'mep_event_start_date' ][ 0 ])); ?> </p>
2018-07-02 05:44:24 -04:00
< ? php
}
add_action ( 'mep_event_time_only' , 'mep_ev_time' );
function mep_ev_time (){
global $event_meta ;
?>
2018-09-14 01:20:47 -04:00
< p >< ? php echo date ( 'h:i A' , strtotime ( $event_meta [ 'mep_event_start_date' ][ 0 ])); ?> </p>
2018-07-02 05:44:24 -04:00
< ? php
}