wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_handle_upload › WordPress Function
Seit2.0.0
Veraltetn/v
› wp_handle_upload ( $file, $overrides = false, $time = null )
| Parameter: (3) |
|
| Siehe: | |
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Wrapper for _wp_handle_upload().
Passes the {@see 'wp_handle_upload'} action.Ähnliche Funktionen: _wp_handle_upload, wp_handle_sideload, wp_import_handle_upload, media_handle_upload, wp_get_upload_dir
Quellcode
function wp_handle_upload( &$file, $overrides = false, $time = null ) {
/*
* $_POST['action'] must be set and its value must equal $overrides['action']
* or this:
*/
$action = 'wp_handle_upload';
if ( isset( $overrides['action'] ) ) {
$action = $overrides['action'];
}
return _wp_handle_upload( $file, $overrides, $time, $action );
}