apply_filters( ‘wp_upload_bits’, array|string $upload_bits_error )

In this article

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.

Parameters

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

Source

 * and return that value instead. An error message should be returned as a string.
 *
 * @since 3.0.0
 *
 * @param array|string $upload_bits_error An array of upload bits data, or error message to return.
 */
$upload_bits_error = apply_filters(
	'wp_upload_bits',

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

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