WordPress at a glance
filter is not described

pre_move_uploaded_file filter-hook . WP 1.0

Filters whether to short-circuit moving the uploaded file after passing all checks.
*

  • If a non-null value is passed to the filter, moving the file and any related error
  • reporting will be completely skipped.

  • @since 4.9.0
  • @param string $move_new_file If null (default) move the file after the upload.
  • @param string $file An array of data for a single file.
  • @param string $new_file Filename of the newly-uploaded file.
  • @param string $type File type.

Usage

add_filter( 'pre_move_uploaded_file', 'filter_function_name_2028', 10, 4 );
function filter_function_name_2028( $null, $file, $new_file, $type ){
	// filter...

	return $null;
}
$null
-
$file
-
$new_file
-
$type
-

Where the hook is called

_wp_handle_upload()
wp-admin/includes/file.php 842
$move_new_file = apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type );

Where the hook is used (in WP core)

Does not used.