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 Retrieve An Image Attachment’s Alt Text?
- How to Fix HTTP Error When Uploading Images?
- Enhance Media Manager for Gallery
- Trigger refresh for new media manager in 3.5
- How to manage attachment relationships for specific posts in WP 3.5+
- Programmatically adding images to media library
- Can I add a Category Metabox to attachment?
- Delete an attachment in the WP media modal window
- Change attachment filename
- How to get attachment file name not attachment URL
- List of available events for wp.media
- Custom collection in media manager?
- Delete Associated Media Upon Page Deletion
- WordPress 3.5 Media Manager – add a button
- Get all post attachments except featured image
- getting attachement images src and add classes
- Rendering the uploaded file in a wp.media object
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Custom “Uploads” Dir: “Edit Image” in Media Library broken
- Getting a taxonomy’s thumbnail url
- Check if post has attachments (not image)
- How to cleanly delete attachment but retain original file?
- Changing attachment urls?
- Add custom class to attachment in media library grid mode
- Are captions stored anywhere?
- Bind event on Media gallery elements WordPress
- Trying to hide buttons from Attachment window
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- get_the_post_thumbnail() doesn’t taking style attribute
- How can I UN-attach media from a post?
- Uploading Multiple Attachments From Front-End With A Description
- Validate alt text for attachments?
- Filter media library items by size
- Remove duplicate attachments
- How could I add button next to “edit image” button in “Attachment Details”
- Applying automatic link class to images embedded to posts
- Is it possible to trigger some JavaScript when Media Popup is opened?
- Disable media library tab for non admins in uploader screen
- How to get attachment caption (get_the_excerpt gives parent post excerpt) ?
- Is it possible to query specific WordPress Attachment files (.ppt & .pdf) and output them in a list?
- Detect if is image unattached
- Password protect some uploaded files, so only logged-in users can view them
- How to single click to download image in single post
- delete attachment from front end
- How to get attachments for a specific post type?
- Give attachments an archive page
- Hook for image edit popup
- How can I hide media library images from general users?
- custom fields for attachments?
- Insert Media – Attachment – Link to : Remove the “attachment page” option
- URL rewrite with add_rewrite_rule and attachment_id
- Saving Custom Field in Attachment Window in WordPress 3.5
- How to add media from front-end to an existing post?
- How to set author for post AND post attachments
- Can I attach a document (eg: PDF) but have a JPEG as a thumbnail?
- Retrieving a custom link on an attachment
- Get attachment from post
- Modify Custom Field in Media Library using JavaScript
- How can I display custom fields value from attachment media?
- Delete attachments from Front end
- Add column for attachment file size
- Creating a multi-file upload form on the front end for attachments
- how to test for attached image
- Unable to upload specific .zip file type via frontend in WordPress 4.0
- Get attachments (get_posts) and WP 3.5 new uploader