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/
Related Posts:
- Audio Playlist : How to bind events for “track change”, “track end”?
- How do I control video media display sizing with native wordpress player
- Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?
- How to re-house images in uploads/YYYY/MM
- How to create different media uploader frames / filter library depending on a custom action
- How to Protect Uploads, if User is not Logged In?
- Add a menu item to WordPress 3.5 Media Manager
- Delete an attachment in the WP media modal window
- Media library to list images only user uploaded
- Rendering the uploaded file in a wp.media object
- How do I force WordPress to show most recent version of images in the media library?
- WordPress Media Manager 3.5 – default link to
- Proper way to add a button to the top menu of the media library?
- display image size in media library screen
- How to capture the selection:toggle event fired by wp.media
- Changing the media library default tab
- Best plugin to manage media library? [closed]
- Restricting access to files within a specific folder [duplicate]
- get total number of images from media using xml-rpc
- Images are registered in media library but still won’t show up
- Upload mobi and epub file in the MEDIA of WP
- Handle lots of images within the media uploader / selector
- Rest API rename media
- Custom media picker in meta box: how to select available image sizes?
- WordPress 3.0 Media Upload Directory
- Can’t edit media details in new role
- 3.5 Media Manager – callout in metaboxes
- How to bulk Edit Dates in Media Library?
- Add instructions For Media Library Uploads
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Media Manager: refresh library after new selection
- Cannot upload anything via wordpress
- Video uploaded with the native media uploader gives Error 404
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working
- Importing Media IDs but not related attachment
- Allow Editor Role to Edit Media
- Bulk image importing from folders
- Creating subfolders in the media library
- how to upload file to media library using link [closed]
- Media Library empty after server move (exact copy of files and db’s)
- Media Library not showing images but still acknowledges existence
- Too slow Image upload in WordPress Media Library as image number increases
- Remove delete-attachment button for every media
- Thumbnail images chopped off but not cropped to exact dimensions
- How to disable Media Library?
- How to disable (and hide) the Media Library for certain users?
- Attaching images to multiple galleries
- Publish / unpublish media items in the media library
- Efficient way to move media folder to another folder
- WordPress append -1 to the image name
- Can’t upload format files on media library
- Media Library modal customization
- Post images are not displayed in media library
- How to Protect Uploads, if User is not Logged In?
- Creating multiple instances of Media Uploader
- Handle image file and save it to media
- Insert Link to Audio versus Embed Audio Player
- How to resize image in wordpress from backend? Seems like bug in wordpress
- Can we reuse WordPress drag drop media upload in plugins?
- Change default ‘file not supported’ error message
- Import of 200+ sermons
- wordpress 3.6 media manager cropping timestamp
- Pictures won’t display in media library and also won’t show preview when selected
- How to batch-add image file extension without losing DB refs?
- Add link to media files in backend and modify linked images in the frontend
- Looking for a way to insert PDF image preview in TinyMCE
- For what security reasons are svgs blocked in the media uploader?
- Which filters or actions to use after a media upload and delete?
- Filter for changing MediaElement.js Settings
- How to hide media uploads by other users in the Media menu?
- Attach Files Metabox
- Media > Image Sizes aren’t being applied to uploads
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- Media library storing files in uploads not folders within in uploads
- add_image_size landscape or portrait
- How to limit characters of the post title?
- Can I stop wordpress generating media sizes
- Trigger JS in custom meta box if a featured image is loaded/exists
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- Deleting images from gallery remain as attachment
- Cannot embed YouTube videos “Failed to embed” error
- wp_get_attachment_image_src() returns wrong url
- Password Protecting Media
- Can I Change the Media Upload Location for each user?
- A link (not in the post) to download a specific PDF file
- wp.media issue with selected image
- Woocommerce blank screen variable product attribute image thumbnail
- Why does “updated_post_meta” did not fire when uploading media other than image?
- Adding Files to Page Only Adds Title, Doesn’t Create Link
- Deleting media using the WordPress Rest API
- Images missing from the media folder
- Is There A Way To Auto-Stock Media Files To Every Site On A WordPress Network?
- Showing added mime types in REST media response
- Gifs displaying soft?
- Missing Images in Uploads Directory (Server Only)
- WordPress / Audio player
- Media Manager 3.5 custom options
- Using WordPress.com API to retrieve featured images
- Image in binary in the data to WordPress media library