@sarenetri
1 year, 6 months ago
No need to assign $topic->ID to $topic_id You can do just simple:
foreach ($topics as $topic) chiudi_topic_dopo_24_ore($topic->ID);