public static function deleteTopic($topicID) { global $wpdb; if (!EventDatabaseManager::usersWithTopicExist($topicID)) { $query = "DELETE FROM datr_Topics WHERE topicID = {$topicID}"; $res = $wpdb->query($query); return $res; } return false; }