OK so using the WP Export Users plugin (Heavily Modified - Working Modified Version can be downloaded here), I am able to generate a textarea output of exactly what I want in a CSV File.
The issue is whether I need to use the textarea as an input field or resuse the query again somehow?
The steps I have done are as follows.
- Plugin queries User Table and output's data to a textarea. It also inserts delimiters and separators. (Working)
- Textarea is part of a form with a submit button "Generate CSV File". Button triggers a function to generate CSV File - generate_csv_file() (Working)
- I have no idea how to insert the textarea data into the above generate_csv_file function (Not Working)
Any help would be appreciated.
Rog