media_upload_default_tab WordPress Filter Hook
The media_upload_default_tab hook is used to set the default tab for the media uploader. By default, the media uploader will show the "From Computer" tab, but this hook can be used to set it to show the "Insert into Post" tab instead.
apply_filters( 'media_upload_default_tab', string $tab ) #
Filters the default tab in the legacy (pre-3.5.0) media popup.
Parameters
- $tab
(string)The default media popup tab. Default 'type' (From Computer).
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |