I got the solution. I used the following script: WordPress Media Manager 3.5 – default link to
and altered it to my needs with this modification:
(function() {
var _AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay;
wp.media.view.Settings.AttachmentDisplay = _AttachmentDisplay.extend({
render: function() {
_AttachmentDisplay.prototype.render.apply(this, arguments);
this.$el.find('select.link-to').val('none');
this.model.set('link', 'none');
this.updateLinkTo();
this.$el.find('select.link-to').parent('label').hide();
this.$el.find('select.size option[value=full]').hide();
this.model.set('size', 'medium');
this.updateLinkTo();
}
});
})();
Related Posts:
- Get All Images in Media Gallery?
- How to add subfolders in media library for better organisation?
- How to display .ico files in the media library
- Uploading Images to Media Library via wp_handle_sideload() fails
- Bind event on Media gallery elements WordPress
- Add class=”media_type” when media is inserted into editor
- How can I list URLs of all audio files within my media gallery?
- Migrating to HTTPS only, most media library links need updating?
- Failing to open advanced-cache.php which is breaking Media Library
- Filter pictures in the media library [closed]
- How to save attachment data?
- How to modify Media Library images
- Change default tab of media manager
- WordPress 3.5 Media Manager – Reorder Selectbox items on Media Library Tab [duplicate]
- Inserting a Download Link in the Quick Edit Actions of the Media Library?
- How do I remove the entire Media section from the main WordPress navigation without just hiding it?
- Audio Playlist : How to bind events for “track change”, “track end”?
- How do I control video media display sizing with native wordpress player
- Is there any way to add images to the Media Library through a path on the server?
- Media Library page super slow, loading up full quality images
- Share media among different domains
- Where is the source of the media items filter
- Bulk Import files on Media Library from CSV
- Media gallery thumbnails 1px
- Resize the WP media Uploader iFrame
- “Insert Into Post” For Custom Button
- How to have changes made in media library to be reflected on posts/pages
- Display image file size in media library
- Media_handle_upload with custom upload folder?
- Remove the ‘Attachment Details’ section of the wordpress media manager
- remove_menu_page breaks “Add media”
- Featured images get shrunken
- Organize media uploads in folders – I have a physical access to (my) server
- Pulling images from a subdomain
- Get image URL from media library “insert from url”
- Media gallery: remove “insert into post” button keeping “Insert gallery” button
- Media Library not showing images properly
- Media Content disapeared after upgrade WP core to 3.5.1
- The best way to protect uploaded media in WordPress?
- Media Library Grid View Custom Filter
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- how to remove thumbnail and LiteSpeed Optimization column in media library list-view?
- Not able to extend wp.media.view.AttachmentsBrowser
- Custom Media Modal and uploading
- Suggested image dimensions Gutenberg Hook
- Media Library No Longer Displays Images
- Media Library SSL
- Change Media Library thumbnails for non-image files to include the post title instead of the filename?
- Alter image meta fields in the Media Library
- Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?
- attachment media-template data model (data.size.url)
- Media library and posts list problems with WordPress on IIS
- How do you alter the default WordPress thumbnail?
- “add from media library” tab is super slow [closed]
- Reorder attachements in the media library
- Adding Alt Tag Column to Media Library List
- How to modify the attachment info text on gallery tab or media page?
- Add media button always inserts media on the next wp_editor instance when created dynamically
- Adding Alt Tag and Dimensions columns to Media Library
- Media Library Latency, Lag, CRON?
- Is it Helpful to transfer all media library to another host? [closed]
- Is there a way to determine if the media-iframe is visible?
- What would be the URL to display the WordPress image editor with an image from the media library?
- Prevent other editors from viewing images of other editors in Add Media Popup
- Media attachment date and post date
- Is there a way to programmatically pass a category to the Media Library selector?
- User media folder for each users on registration
- Larger preview thumbnails in Media Library
- How can I no-index specific PDF files in my Avada WordPress media library so that they don’t appear in search results?
- Efficient way to move media folder to another folder
- WordPress append -1 to the image name
- Media Library http to https
- Filter media library by custom postmeta
- How do you find a file in the media library using the file URL?
- How to limit the amount of images uploaded to the media library within post.php
- Adding Facebook Open Graph Code does not work for Media Library Attachment Pages
- Media library corrupted after upgrading to 4.9.6
- query that alternates text posts with images from media gallery
- Can multiple sites under one folder structure share media directories?
- How to create different media uploader frames / filter library depending on a custom action
- WordPress Media Delete Logs
- WordPress not using edited image
- When I’m in post editor and click on ‘Add media’, why won’t it load the media library with this code?
- Get filenames of available image sizes
- wordpress 3.6 media manager cropping timestamp
- Media Library not showing images when adding to Posts (but retrieving image info via ajax)
- Remove (Unattached) Attach from “Uploaded to” in Media Library
- Use the “Media Library” in Frontend
- Why is my upload / Select media library button empty?
- WordPress Media Library
- Create media library feed
- Broken image links in media library after restore
- Store images and videos category wise and fetch them in json format
- Add Filename Colum to Media Library
- create a user’s owned folder on user registration
- How to bulk edit taxonomies for attachments
- wp cli media commands not working
- Remove Edit Attachment Button in WordPress Mediathek -> see Screenshot
- in classic editor, is there a way to add media lib files to the content search when creating a link?
- Editing alt text in media library