apply_filters( "{$action}_prefilter", array $file )

Filters the data for a file before it is uploaded to ClassicPress.


Description

The dynamic portion of the hook name, $action, refers to the post action.


Parameters

$file

An array of data for a single file.


Source

File: wp-admin/includes/file.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.0.0 Converted to a dynamic hook with $action.
WP-2.9.0 Introduced. as 'wp_handle_upload_prefilter'.