apply_filters( 'media_upload_default_type', string $type )

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


Description Description


Parameters Parameters

$type

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


Top ↑

Source Source

File: wp-admin/media-upload.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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