Use the attachment_fields_to_edit filter to remove the fields you don’t want displaying from the array.
function remove_caption($fields) {
unset($fields['post_excerpt']); // See wp-admin\includes\media.php line 1071
return $fields;
}
add_filter('attachment_fields_to_edit','remove_caption');
Related Posts:
- Remove Dimension from wp_get_attachment_image
- explode array within shortcode
- How can I append custom data to images in the editor?
- Saving Custom Field in Attachment Window in WordPress 3.5
- Add multiple images to a page sidebar
- How to set a default meta value for custom field
- Add custom field to image editor
- How to save custom fields for attachments
- Display info from custom fields in all images’ HTML
- copy attachments to another post type and change attachment url
- ajax delete value from custom field array
- Save attachment custom fields on front end
- Add WYSIWYG to Image Description field
- Insert attachment ID in custom field from media uploader
- How can I store a file in the database in the same way WordPress and ACF do?
- Getting the ID of any image for use in functions.php
- Validate data on attachment_fields_to_save
- How do i save and retrieve custom attachment meta?
- Custom field not updating when value is empty
- how to upload a image from frontend with wp_insert_post and also update_post_meta?
- Custom wysiwyg editor doesn’t execute shortcodes?
- Link FROM attachment to full post and get custom fields values on attachment page?
- Attach images to posts using custom fields (just paths to images already uploaded)
- Show custom field on attachment page?
- Save attachment ID instead of URL in custom field
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- Custom field in media library not saving, selected() function not adding “selected” to select list input type
- Setting user permissions per post
- Permanently show Custom Fields in Editor
- How to delete attachments associated with custom field type when post property changes? [closed]
- How to add content with a filter when there’s no content in the editor
- Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
- Adding thumbnails for non-image attachments
- How can I attach files without using a plugin?
- Add a Jquery Datepicker to custom field in post edit
- Show links to archive pages based on custom field values
- Storing meta fields multiple times OR once with multi dimensional array?
- Date, Time, and Timezones
- Add custom option to Standard Page Attributes Meta Box
- Call a custom field in an audio shortcode?
- checkbox in post add/edit to add/remove the post from menu
- Custom Fields Bulk Edit
- Custom Page Template [closed]
- Using OR in WP_Query negates the “NOT EXISTS” compare
- How to add a predefined custom field without using a plugin?
- PODS performance vs custom field
- How do you create dynamic customised sections in WordPress?
- How to enable Custom Fields that are disabled by theme?
- Calling custom fields for pages (not posts)
- how can i stop custom fields that have apostrophes from breaking my code
- Create new post with meta data using WordPress API
- get_terms that have custom sticky field checked
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- WPML & CFT: keeping custom field file to translation
- How to make condition, based on custom fields value?
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- How do I Implement Atomic Update of Post Metadata?
- Custom fields value
- How do I have WP_Query match posts based on search parameter OR meta fields? (rather than search parameters AND meta fields)?
- Want to make A CSS if meta key value is empty
- Add & store extra fields – WordPress Comments
- Outputing a metabox textarea and avoid line breaks inside li tags
- Restrict WordPress Search to Custom Field
- how to display an excerpt of the latest post on the homepage?
- How to add a custom field to a post created programmatically?
- How to mass update custom fields for more than 20k posts
- Custom post type missing custom fields
- Problem with saving large amount of data in postmeta/usermeta
- How to get posts with a metadata numeric key greater than X?
- List all unique custom field values?
- “Matching” or “Linking” Two WordPress Pages: Custom Fields?
- Build index page from custom fields
- Meta_query ‘compare’ => ‘LIKE’ not working?
- Get text from user and display it on page
- Upload & include specific JavaScript files for posts?
- If metabox has content display content
- Custom meta boxes not saving
- help for user login
- Listing the most popular 8 city (custom fields) as used in posts
- How to delete file uploaded by Plupload
- Display Meta Data with HTML?
- How to store meta field values
- Displaying custom field meta within WP_query loop
- Order by custom date field
- Group Posts By Custom Meta Value: Date
- Meta field bulk editing no longer working in WP 6.0 [closed]
- Custom Field: how to save array of multiple key-values in WordPress
- How can I detect user’s timezone?
- Delete user meta but only if found in array
- meta_query to check all custom fields
- Showing the post only when there is title, thumbnail and the content in Custom Fields
- Show Custom Taxonomy as Headline for related posts
- Custom field group on page
- display Flexible Fields from options
- How to filter post using custom feild value in shortest and longest duration?
- list pages by custom_field?
- Get custom field from page, in a post?
- Advenced custom fields auto fill problem
- Multiple permalinks for a single post from custom field
- Search for meta_query does not return any result if combined with title