[wp-hackers] uploader with options API

Michael Toppa public at toppa.com
Mon Jul 9 13:31:23 UTC 2012

Hi Andre,

This might help:


Mike T

On 07/09/2012 08:00 AM, wp-hackers-request at lists.automattic.com wrote:
> Message: 2
> Date: Sun, 8 Jul 2012 23:57:54 +0100
> From: Kevinjohn Gallagher <kevinjohngallagher at hotmail.com>
> Subject: Re: [wp-hackers] uploader with options API
> To: "wp-hackers at lists.automattic.com"
> 	<wp-hackers at lists.automattic.com>
> Message-ID: <BLU150-W2075EFBA4897947AD01D42CCEC0 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
> 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.
> Kev
>> 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.
>> Quite a few blogposts use a javascript,
>> (e.g.
>> http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/)
>> 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.
>> Thanks
>> Andr?

More information about the wp-hackers mailing list