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.
2925*andreturn that value instead. An error message should be returned as a string.2926*2927* @since 3.0.02928*2929* @param array|string$upload_bits_error An array of upload bits data,or error message to return.2930*/2931$upload_bits_error=apply_filters(2932'wp_upload_bits',2933array(2934'name'=>$name,2935'bits'=>$bits,2936'time'=>$time,2937)
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.