wpseek.com
A WordPress-centric search engine for devs and theme authors



media_upload_default_type › WordPress Filter Hooks

Since2.5.0
Deprecatedn/a
apply_filters( 'media_upload_default_type', 'file' )
Parameters:
  • (string) $type The default media upload type. Possible values include 'image', 'audio', 'video', 'file', etc. Default 'file'.
    Required: Yes
Defined at:
Codex:

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





Source

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