function update

This commit is contained in:
magepeopleteam 2022-10-06 01:54:03 +00:00
parent 6bf80219b3
commit ef5d32286b
3 changed files with 4 additions and 2 deletions

View File

@ -4337,6 +4337,8 @@ function mep_get_event_upcoming_date($event_id) {
add_action('mep_event_single_page_after_header', 'mep_update_event_upcoming_date');
if (!function_exists('mep_update_event_upcoming_date')) {
function mep_update_event_upcoming_date($event_id) {
$event_id = !empty($event_id) ? $event_id : get_the_id();
$current_upcoming_date = get_post_meta($event_id, 'event_upcoming_datetime', true) ? get_post_meta($event_id, 'event_upcoming_datetime', true) : 0;
$event_upcoming_date = mep_get_event_upcoming_date($event_id);

View File

@ -27,7 +27,7 @@ if (post_password_required()) {
$current_template = $event_meta['mep_event_template'][0];
$_current_template = $current_template ? $current_template : $global_template;
$currency_pos = get_option('woocommerce_currency_pos');
do_action('mep_event_single_page_after_header');
do_action('mep_event_single_page_after_header',get_the_id());
?>
<div class="mep-events-wrapper wrapper">
<div class="mep-events-container">

View File

@ -1,7 +1,7 @@
<?php
get_header();
the_post();
do_action('mep_event_single_page_after_header');
do_action('mep_event_single_page_after_header',get_the_id());
?>
<div class="mep-events-wrapper">
<div class='mep_event_list'>