media_upload_default_type

SummerySummery

Filters the default media upload type in the legacy (pre-3.5.0) media popup.

Syntax

apply_filters( 'media_upload_default_type', string $type )

ParametersParameters

$type

(string) The default media upload type. Possible values include 'image', 'audio', 'video', 'file', etc. Default 'file'.

SourceSource

File: wp-admin/media-upload.php

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top