apply_filters( 'media_upload_tabs', string[] $_default_tabs )
- Since
- 2.5.0
Filters the available tabs in the legacy (pre-3.5.0) media popup.
Compatibility
- WordPress
- since 2.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$_default_tabsstring[]- An array of media tabs.
Where this hook fires · 2
wp-admin/includes/media.php:31media_upload_tabs()wp-includes/media.php:4794wp_enqueue_media()
Source code
* Filters the available tabs in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * * @param string[] $_default_tabs An array of media tabs. */ return apply_filters( 'media_upload_tabs', $_default_tabs );} /** * Adds the gallery tab back to the tabs array if post has image attachments. * * @since 2.5.0Changelog
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.