Change default tab of media manager

Try this:

function rearrange_media_tabs($_default_tabs) {
    $_default_tabs = array(
        'custom' => __('Your Tab Name'),
        'type_url' => __('From URL')
    );

   return $_default_tabs;
}

add_filter( 'media_upload_tabs', 'rearrange_media_tabs' );

From the Codex: https://developer.wordpress.org/reference/functions/media_upload_tabs/

Leave a Comment