wp_handle_sideload


wp_handle_sideload ( $file, $overrides = false, $time = null )

Parameters:
  • (array) $file An array similar to that of a PHP `$_FILES` POST array
  • (array|bool) $overrides Optional. An associative array of names=>values to override default variables. Default false.
  • (string) $time Optional. Time formatted in 'yyyy/mm'. Default null.
See:
Returns:
  • (array) On success, returns an associative array of file attributes. On failure, returns $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ).
Defined at:

Description

Wrapper for _wp_handle_upload().

Passes the {@see 'wp_handle_sideload'} action.

Related Functions

media_handle_sideload, wp_handle_upload, _wp_handle_upload, wp_embed_handler_video, wp_import_handle_upload

Top Google Results

User discussions

wpseek mobile