add_filter( 'woofood_adjust_delivery_time_thankyou', 'wpslash_custom_hook_dynamically_change_pickup_time', 10, 2 );
add_filter( 'woofood_adjust_pickup_time_thankyou', 'wpslash_custom_hook_dynamically_change_pickup_time', 10, 2 );
function wpslash_custom_hook_dynamically_change_pickup_time( $time, $order_id ) {
$current_day_name= current_time("l");
if($current_day_name == "Monday")
{
return "45";
}
if($current_day_name == "Tuesday")
{
return "30";
}
if($current_day_name == "Wednesday")
{
return "60";
}
return $time;
}