Media_handle_upload with custom upload folder?
If I’m not mistaken, then it should be possible. You want to use media_handle_upload(), which calls wp_handle_upload() to handle the file upload. wp_handle_upload() on itself won’t be helpful, especially because it is pretty much just a wrapper for _wp_handle_upload(). It’s not the end yet, because inside _wp_handle_upload() the function wp_upload_dir() is called, where we find … Read more