apply_filters( "{$action}_prefilter", string[] $file )

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


Description Description

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


Top ↑

Parameters Parameters

$file

(string[]) An array of data for a single file.


Top ↑

Source Source

File: wp-admin/includes/file.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Converted to a dynamic hook with $action.
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.