I need a simple plugin made from scratch (no backend panel) that shows me how create a wordpress URL like:
[url removed, login to view][ID]
where "customized_path" can be customized on the plugin code
and ID is a integer or whatever ID I will pass
when enter to that customized URL, the plugin will force a download of a txt file showing:
Hello, you downloaded [ID]
- The plugin should allow customize the "customized_path" and if I want change the headers to change from txt to another filetype i need to do (like a pdf).
Really simple plugin for learning purposesthat maybe need to use wordpress rewrite api or whatever...