apply_filters( ‘media_upload_default_type’, string $type )

In this article

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

Parameters

$typestring
The default media upload type. Possible values include 'image', 'audio', 'video', 'file', etc. Default 'file'.

Source

$type = apply_filters( 'media_upload_default_type', 'file' );

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.