2010-05-14, 21:47:48
SamWM Wrote:I think it would be useful if you could tag files after you have uploaded.It would also bloat the XML back-end, so I don’t see this happening any time soon. Chris might surprise me by implementing something like it though, he always surprises me ;-)
SamWM Wrote:I cannot see how you could do it as a plugin - I can see the files-uploaded and files-extra hooks, but not sure how these could be used to extend the files feature.They can be used to extend the files (uploads) page, files-uploaded will run when you upload a file and files-extra allows you to run some action every time a file is being shown in the overview. You might be able to use files-extra to add a field for tags to each file.
If you’d like to see additional hooks, just request them.
SamWM Wrote:Also the 'hello world' sample plugin does not work as is Call to undefined function add_hook()You’re very right, the documentation on the website hasn’t been updated to reflect the latest version changes in the core yet.
I've found that this is the case with the latest version and 2.0.1 - it should say add_action instead.
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!