function update

This commit is contained in:
magepeopleteam 2022-11-07 07:13:48 +00:00
parent 58b755ac52
commit 50983464f9
1 changed files with 4 additions and 2 deletions

View File

@ -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_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); $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_sold = mep_get_event_total_seat_left($post_id, $upcoming_date);
$total_left = $total_seat - ($total_sold + $total_resv); $total_left = $total_seat - ($total_sold + $total_resv);
// $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date); // $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_seat = mep_event_total_seat(get_the_id(), 'total');
$total_resv = mep_event_total_seat(get_the_id(), 'resv'); $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_sold = mep_get_event_total_seat_left($post_id, $upcoming_date);
$total_left = $total_seat - ($total_sold + $total_resv); $total_left = $total_seat - ($total_sold + $total_resv);
// $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date); // $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date);