Filter hook 'wp_upload_bits'

in WP Core File wp-includes/functions.php at line 2914

Description

Filters whether to treat the upload bits as an error. 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.

Occurrences

Filename Line Number
wp-includes/functions.php 2914

Parameters

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

PHP Doc

/**
	 * Filters whether to treat the upload bits as an error.
	 *
	 * 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.
	 *
	 * @since 3.0.0
	 *
	 * @param array|string $upload_bits_error An array of upload bits data, or error message to return.
	 */