media_upload_tabs

The timeline below displays how wordpress function media_upload_tabs has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * WordPress Administration Media API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Defines the default media upload tabs.
 *
 * @since 2.5.0
 *
 * @return string[] Default tabs.
 */
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 string[] $_default_tabs An array of media tabs.
     */
    return apply_filters('media_upload_tabs', $_default_tabs);
}

WordPress Version: 5.4

/**
 * WordPress Administration Media API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Defines the default media upload tabs
 *
 * @since 2.5.0
 *
 * @return string[] Default tabs.
 */
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 string[] $_default_tabs An array of media tabs.
     */
    return apply_filters('media_upload_tabs', $_default_tabs);
}

WordPress Version: 4.6

/**
 * WordPress Administration Media API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Defines the default media upload tabs
 *
 * @since 2.5.0
 *
 * @return array default tabs
 */
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);
}

WordPress Version: 3.9

/**
 * WordPress Administration Media API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Defines the default media upload tabs
 *
 * @since 2.5.0
 *
 * @return array default tabs
 */
function media_upload_tabs()
{
    $_default_tabs = array(
        'type' => __('From Computer'),
        // handler action suffix => tab text
        'type_url' => __('From URL'),
        'gallery' => __('Gallery'),
        'library' => __('Media Library'),
    );
    /**
     * Filter 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);
}

WordPress Version: 3.7

/**
 * WordPress Administration Media API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Defines the default media upload tabs
 *
 * @since 2.5.0
 *
 * @return array default tabs
 */
function media_upload_tabs()
{
    $_default_tabs = array(
        'type' => __('From Computer'),
        // handler action suffix => tab text
        'type_url' => __('From URL'),
        'gallery' => __('Gallery'),
        'library' => __('Media Library'),
    );
    return apply_filters('media_upload_tabs', $_default_tabs);
}