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.
2913*andreturn that value instead. An error message should be returned as a string.2914*2915* @since 3.0.02916*2917* @param array|string$upload_bits_error An array of upload bits data,or error message to return.2918*/2919$upload_bits_error=apply_filters(2920'wp_upload_bits',2921array(2922'name'=>$name,2923'bits'=>$bits,2924'time'=>$time,2925)
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.