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