media_upload_default_type

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'media_upload_default_type', string $type )

Parameters Parameters

$type

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

Source Source

File: wp-admin/media-upload.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.