0
votes
1answer
232 views

Using wp_handle_upload() to direct specific path by using $overrides

How do you use wp_handle_upload function and apply_filter together to upload files on a specific path? What is going to be the override? For example: $overrides = array('file' => ...
0
votes
1answer
530 views

Upload PDF and other files from the Front-End

I am trying to create a medical website, where logged-in doctors can actually upload pdfs and other files (such as jpg) from the front-end in posts. Then, after reloading the page, the uploaded files ...
5
votes
1answer
269 views

Which filters or actions to use after a media upload and delete?

When a media (image) is uploaded and the subsequent images are created (all the different sizes), I would like to perform a few actions. It is simple and I basically need only the new attachment ID, ...
2
votes
2answers
2k views

Where is Featured Image code stored in WP?

Well, I'm looking for source code of these two small containers (PHP backend, HTML frontend & JS used to attach the image): I want to build a theme option based on Featured Image code, but I'm ...