[wp-trac] [WordPress Trac] #48477: Add a hook before creating image sub-sizes
WordPress Trac
noreply at wordpress.org
Thu Nov 21 19:41:39 UTC 2019
#48477: Add a hook before creating image sub-sizes
-------------------------------------------------+-------------------------
Reporter: GregLone | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.3.1
Component: Upload | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing 2nd-opinion | Focuses:
reporter-feedback |
-------------------------------------------------+-------------------------
Changes (by azaozz):
* keywords: has-patch needs-testing 2nd-opinion => has-patch needs-testing
2nd-opinion reporter-feedback
Comment:
It would allow plugins to perform operations on the main file for example.
What would be the intended use there? Currently there are (at least) three
hooks fired right after a file was uploaded:
- https://developer.wordpress.org/reference/hooks/action_prefilter/
- https://developer.wordpress.org/reference/hooks/pre_move_uploaded_file/
- https://developer.wordpress.org/reference/hooks/wp_handle_upload/
These give full access to all aspects of handling an uploaded file. Do we
really need a forth hook specific for images? :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48477#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list