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.
2948*andreturn that value instead. An error message should be returned as a string.2949*2950* @since 3.0.02951*2952* @param array|string$upload_bits_error An array of upload bits data,or error message to return.2953*/2954$upload_bits_error=apply_filters(2955'wp_upload_bits',2956array(2957'name'=>$name,2958'bits'=>$bits,2959'time'=>$time,2960)
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.