This might do the trick!
css:
.media-sidebar .details .edit-attachment {
display: none;
}
.media-sidebar .details .delete-attachment {
display: none;
}
And this:
foreach( array( 'post.php', 'post-new.php' ) as $hook )
add_action( "admin_print_styles-$hook", 'admin_styles_so_25894288');
function admin_styles_so_25894288() {
global $typenow;
if( 'post' !== $typenow )
return;
?>
<style>
.media-sidebar .details .delete-attachment
{
display: block;
}
.media-sidebar .details .edit-attachment
{
display: block;
}
</style>
<?php
}
Related Posts:
- Perform a custom (bulk) action in media view
- How to trigger a refresh in the media modal
- Programmatically adding images to the media library with wp_generate_attachment_metadata randomly fails
- How can I bulk delete media and attachments using WP-CLI?
- Expanding new Media Uploader in WordPress 3.5
- complex restriction of items in media library
- Edit image / Delete image link
- media_sideload_image file name?
- Get all posts (of any post type) an attachment is used in
- Unattaching unlinked images
- Show Post ID in “Find Posts or Pages” box in Media Library?
- Gel all image from certain post type
- Can i hide the attachments from media which I uploaded from front end?
- Get the attachment URL on single.php
- Show selected images on top in Media Manager
- How to retrieve alt attribute for an attachment (uploaded image)?
- Where does the gallery shortcode gets its attachments from?
- Control attachments menu order with jQuery Sortable
- Is it possible to share media files between multiple WordPress sites?
- Open the Attachment Details popup
- Proper use of wp_get_attachment_image?
- how to get random media id from media gallery
- Upload multiple image with media_handle_upload with multiple file field [duplicate]
- Get an image from the media library. Struggling with the code?
- Media Library Mess After FTP … /uploads
- Media item permalink goes to source file instead of attachment.php
- wp_get_attachment_image_src calling wrong location
- Removing images deleted from uploads folder, from Media Library
- WP media attachment location vs permalink
- Retrieve ONLY mp3s and set a variable for use in a playlist called by single.php template?
- Is there a way to add Reattach and Unattach links in image gallery?
- How to retrieve images contained in a post
- How to save media-form on custom tab
- Bulk delete media by year
- Media library upload hook
- How to Fix HTTP Error When Uploading Images?
- List of available events for wp.media
- getting attachement images src and add classes
- Are captions stored anywhere?
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- How could I add button next to “edit image” button in “Attachment Details”
- Give attachments an archive page
- How can I hide media library images from general users?
- Insert Media – Attachment – Link to : Remove the “attachment page” option
- Retrieving a custom link on an attachment
- Delete attachments from Front end
- get post attachments of a particular size
- How to extend Media Library (WP 4.4)
- Adding fields to the media uploader with jquery listeners
- How to upload image from front end and save in media library?
- How to save custom fields for attachments
- Trying to add filename over image in Media Browser
- How to create a CSV on the fly and send as an attachment using wp_mail?
- Prevent Duplicate Attachment When Using wp_insert_post
- Attachment 0×0 size error [closed]
- Contact Form 7 Data As Attachment [closed]
- Post Via Email – How to send Attachments with it (e.g. PDF File or JPEG Image)?
- Show how many images are attached to a post/page on compose page
- Custom Gallery HTML only working when images are attached to post/page
- How do I link an image to the post it is attached to?
- Insert woocommerce products programmatically with featured image and gallery
- Attachment page 404
- How to compress image before inserting to wordpress using wp_insert_attachment function?
- Getting “too many redirects” when using wp_redirect for attachment page
- Change default selection for “Embed or Link”?
- How can I make an attachment page for pdf uploads?
- the_time() returning wrong date/time (way in the future)
- Add audio attachment link to RSS
- How to: Retrieve an attachment image from post and output it
- Echo list attachment size in post
- How do I intercept and modify the functionality of wp_get_attachment_image()?
- Undoing define( ‘UPLOADS’, ”.’files’ ); to repoint to “wp-content/uploads” folder
- Upload image and assign it’s id to post
- How to get thumbnail from post attachment in this loop
- How can I rewrite old attachment URLs?
- All images on one line for each post
- How can I customize the link when an attached image is clicked?
- Set a minimum and maximum limit of images to select in the MediaUpload component for Block
- get all images from the wordpress media library with link to the post they are associated with
- Add a word to the first // wp_get_attachment_url // as the subdomain name
- wp_delete_attachment doesn’t delete image files / doesn’t work
- Get attachment URL from attachment Link in WordPress
- Display audio file in audio.php
- WordPress Dropdown image select
- how to add data in my custom theme from WP-Admin Panel
- Display setting ‘size’ not available in image settings modal
- How to destroy or dispose wordpress uploder/manager?
- Media library images “missing” after migrating them using SQL
- Remove attached media
- Incomplete attachment page
- How to retrieve “custom url” from image attachment in wordpress
- list of attachments: wp_get_attachment_link works, wp_get_attachment_image does not
- Custom attachment field dissapearing
- How can I let users access a specific attachment?
- What is the most efficient way to retrieve a group of image URL’s from different attachment ID’s of a specific crop size?
- How to wrap this Link with an Image?
- I want to edit documents on my blog without the need to download and upload files again [closed]
- Open attachments in new tab/window
- Change the next thumbnail to text
- Is there any halfway decent documentation on the wp.media JS class?