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