media_upload_tabs
Defines the default media upload tabs.
Description
(array) media_upload_tabs();
Returns (array)
default tabs
Usage
if ( !function_exists( 'media_upload_tabs' ) ) { require_once ABSPATH . '/wp-admin/includes/media.php'; } // NOTICE! Understand what this does before running. $result = media_upload_tabs();
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/media.php
- function media_upload_tabs() {
- $_default_tabs = array(
- 'type' => __('From Computer'), // handler action suffix => tab text
- 'type_url' => __('From URL'),
- 'gallery' => __('Gallery'),
- 'library' => __('Media Library')
- );
- /**
- * Filters the available tabs in the legacy (pre-3.5.0) media popup.
- *
- * @since 2.5.0
- *
- * @param array $_default_tabs An array of media tabs.
- */
- return apply_filters( 'media_upload_tabs', $_default_tabs );
- }