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).


Top ↑

Source

File: wp-admin/media-upload.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.