wp_handle_upload_error() WordPress Function

The wp_handle_upload_error() function is used to handle errors encountered during the file upload process. This function can be used to display an error message to the user or to log the error.

wp_handle_upload_error( $file,  $message ) #

Contents


Source

File: wp-admin/includes/file.php

		function wp_handle_upload_error( &$file, $message ) {
			return array( 'error' => $message );
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.