apply_filters( 'wp_upload_bits', array|string $upload_bits_error )

Filters whether to treat the upload bits as an error.


Description

Returning a non-array from the filter will effectively short-circuit preparing the upload bits and return that value instead. An error message should be returned as a string.


Top ↑

Parameters

$upload_bits_error array|string
An array of upload bits data, or error message to return.

Top ↑

Source

File: wp-includes/functions.php. View all references

$upload_bits_error = apply_filters(
	'wp_upload_bits',
	array(
		'name' => $name,
		'bits' => $bits,
		'time' => $time,
	)
);


Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes

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