Hi @amineriad ,
You need to add hook in your theme functions.php file to expire events on event start date. You need to add below code :
// This will help to set your expire date same as event start date
add_filter('wpem_expire_date_time', 'wpem_change_expire_date_time', 10, 2);
function wpem_change_expire_date_time($expire_date, $event){
//this will return event expire date and time
return $event->_event_start_date;
}
// This will help you to expire event as per your country timezone
add_filter('wpem_get_current_expire_time', 'get_current_date_time');
function get_current_date_time($date){
//this will return your current date and time
// pass your timezone string here
date_default_timezone_set('Asia/Kolkata');
return date("Y-m-d H:i:s");
}
This code will help you to resolve your query. If you need any further guidance or have any other query then please write here, we will help you to resolve your query.
Thank you.