function update
This commit is contained in:
parent
58b755ac52
commit
50983464f9
|
@ -52,7 +52,8 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
$total_seat = apply_filters('mep_event_total_seat_counts', mep_event_total_seat($post_id, 'total'), $post_id);
|
||||
$total_resv = apply_filters('mep_event_total_resv_seat_count', mep_event_total_seat($post_id, 'resv'), $post_id);
|
||||
|
||||
$upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : '';
|
||||
// $upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : '';
|
||||
$upcoming_date = '';
|
||||
$total_sold = mep_get_event_total_seat_left($post_id, $upcoming_date);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
// $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date);
|
||||
|
@ -240,7 +241,8 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
$total_seat = mep_event_total_seat(get_the_id(), 'total');
|
||||
$total_resv = mep_event_total_seat(get_the_id(), 'resv');
|
||||
|
||||
$upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : '';
|
||||
// $upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : '';
|
||||
$upcoming_date = '';
|
||||
$total_sold = mep_get_event_total_seat_left($post_id, $upcoming_date);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
// $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date);
|
||||
|
|
Loading…
Reference in New Issue