I've been working on a WordPress plugin lately, and one thing I've been trying to do is to create a file download out of some plugin settings (i.e. text data, json file). In general in order to do that via PHP, you have to send the right headers: 1 2...