{$action}_prefilter

Advertisement

Summery Summery

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

Syntax Syntax

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

Description Description

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

Parameters Parameters

$file

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

Source Source

File: wp-admin/includes/file.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.