Is there an easy way to include an upload box to your settings page?
I am building an Open Graph options page and I like users to upload a standard image directly from that page.
|
Is there an easy way to include an upload box to your settings page? I am building an Open Graph options page and I like users to upload a standard image directly from that page. |
||||
|
|
|
WordPress provides a convenient function for just this purpose: Assuming that you already have the appropriate file form field in your settings page, and that you're using
Then, you just need to define that
That's pretty much it. |
|||
|
|
This was more what I wanted: http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ Now to figure out how you can detect if a certain image has been deleted. |
|||
|
|