[wp-hackers] uploader with options API
kevinjohngallagher at hotmail.com
Sun Jul 8 22:57:54 UTC 2012
I added similar to our framework recently.You can see a cut down version at: http://wordpress.org/extend/plugins/kevinjohn-gallagher-pure-web-brilliants-image-controls/
Modern Tribe's IMAGE WIDGET plug-in is also an excellent place to start.
> Date: Sun, 8 Jul 2012 15:02:23 -0700
> From: andre at pixelplexus.co.za
> To: wp-hackers at lists.automattic.com
> Subject: [wp-hackers] uploader with options API
> I've been trying to figure out how to properly use the WordPress' uploader
> with a plugin option.
> I'm using add_settings_field to create the field and assumed there must be
> straight-forward way to call the uploader from the callback that renders
> the input, but no luck. I don't know if I'm just being a klutz, or a klutz
> missing something really important.
> but there seems to be some dodgyness around how to get the data back to
> the form's text field. In my case I've not even got the button that should
> launch the uploader to do anything when you click it.
> Any advice or pointers to plugins to study would be much appreciated.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers