wp_upload_bits

wp_upload_bits

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.0.3

apply_filters('wp_upload_bits') is found 1 times:

  • /wp-includes/functions.php line 2178
    	 * @since 3.0.0
    	 *
    	 * @param mixed $upload_bits_error An array of upload bits data, or a non-array error to return.
    	 */
    	$upload_bits_error = apply_filters( 'wp_upload_bits', array( 'name' => $name, 'bits' => $bits, 'time' => $time ) );
    	if ( !is_array( $upload_bits_error ) ) {
    		$upload[ 'error' ] = $upload_bits_error;
    		return $upload;
    	}
    
    	$filename = wp_unique_filename( $upload['path'], $name );