Used By
| Used By | Description |
|---|---|
| wp-admin/includes/file.php: _wp_handle_upload() | Handles PHP uploads in WordPress. |
Filters the data for a file before it is uploaded to WordPress.
The dynamic portion of the hook name, $action, refers to the post action.
(string[]) An array of data for a single file.
| Version | Description |
|---|---|
| 4.0.0 | Converted to a dynamic hook with $action. |
| 2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/action_prefilter