I am developing my first wordpress plugin. It should only allow the user to change the logo in a custom template and change the color scheme in a custom template.
I created the administration settings page and now I want to add a field that allows the user to upload an image. How to upload image to wp-content / uploads folder. So far I have this in the table:
<td><input name="logo_image" type="file" id="logo_image" value="" /></td>
Is this the right approach? If so, how can I redirect the file to the correct folder? Does Wordpress have its own way to handle file uploads?
source share