WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

pre_move_uploaded_file хук-фильтр . WP 4.9.0

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

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


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

	return $move_new_file;
If null (default) move the file after the upload.
An array of data for a single file.
Filename of the newly-uploaded file.
Mime type of the newly-uploaded file.

Список изменений

С версии 4.9.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.