Upload hooks for manipulation
-
At present I use the filter hook
wp_handle_upload_prefilter
to rename files andupload_dir
to alter path/URLs. Now I require the path/URL to be altered depending on the extension of the file.upload_dir
does not parse the file name andwp_handle_upload_prefilter
does not parse the path/URL.Do you know of a way that will allow me to manipulate the path/URL based on the extension of a file? Or perhaps there is a hook that can do both alter the path/URL and rename the file? I’m welcome to all ideas.
Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Upload hooks for manipulation’ is closed to new replies.