Filter hook 'media_upload_default_type'

in WP Core File wp-admin/media-upload.php at line 64

Description

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

Occurrences

Filename Line Number
wp-admin/media-upload.php 64

Parameters

Type Name Description
string $type The default media upload type. Possible values include 'image', 'audio', 'video', 'file', etc. Default 'file'.

PHP Doc

/**
	 * Filters the default media upload type in the legacy (pre-3.5.0) media popup.
	 *
	 * @since 2.5.0
	 *
	 * @param string $type The default media upload type. Possible values include
	 *                     'image', 'audio', 'video', 'file', etc. Default 'file'.
	 */