You can do this via a filter. Add the following to functions.php. You can also add your own fields this way…
// edit fields in media upload area
add_filter('attachment_fields_to_edit', 'remove_media_upload_fields', 10000, 2);
function remove_media_upload_fields( $form_fields, $post ) {
// remove unnecessary fields
unset( $form_fields['image-size'] );
unset( $form_fields['post_excerpt'] );
unset( $form_fields['post_content'] );
unset( $form_fields['url'] );
unset( $form_fields['image_url'] );
unset( $form_fields['align'] );
return $form_fields;
}
The example above strips out more than you need to but if you do a print_r() on the $form_fields variable you’ll see what’s available to add/remove.
Related Posts:
- How to remove admin menu pages inserted by plugins?
- Making Custom Fields Standard in the Admin UI
- Custom ReCaptcha Login
- Creating my own Admin Forms in a WordPress CMS?
- How to make custom bulk actions work on the media/upload page?
- deleted users still show in count?
- How to build custom WP admin with custom URLs
- Redirect members to custom page upon logging in through WP admin
- Custom Dashboard Home Screen Options
- Add a page that appears in the backend admin that lists files to download? WP 3.3
- Adding “Interesting Tags” & “Ignored Tags” like StackOverflow.com in a WordPress Blog?
- How do I change the default admin color scheme in MP6
- Extend Screen Options
- Admin Panel – Custom Menu Sub-Item LINK
- Adding custom styles to dropdown in editor
- how to add custom css and js on wordpress post editor directly without using .php file
- How to customize core admin pages within a theme?
- Allow non-admins to access the Customize theme page
- How to change popular term checklist title when edit post?
- WordPress customizer Preview not loading
- How to use default WP form elements to interact with custom DB table?
- Extend WordPress Core Classes in OOP Theme?
- Customizing Users in Admin Area
- Custom Columns WordPress Admin
- Restrict Viewing of post on both front and backend?
- add custom content to appearance/widgets screen
- theme customizer – can a single option pass multiple values?
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- Customizing admin look and feel for just one particular type of user
- Open login logo URL in new tab
- Change admin_title of a plugin using code snippet/functions
- Delete a column in edit.php generated with a plugin
- Add admin page for specific post status (for example)
- How to show Term ID beside Name Category with wp_dropdown_categories()
- How to create custom backend admin menu in different languages?
- POST 429 Error when trying to place more than 20 images into post at once
- Figuring out how to create “Option Pages” in WordPress admin
- Check get_post value after wp-admin login
- Custom Admin Section
- where can i find the login page in wordpress and add my header to it
- Style Radio Buttons inside Edit Page (Custom Fields)
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Create Custom Admin Fields
- How to create functions that affect only a specific user
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Import bootstrap 5 and bootstrap icons in wp-admin backend
- How to: Easily Move a WordPress Install from Development to Production?
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- How to add a new product type on woocommerce product types? [closed]
- How to add Disqus comment count
- Can WP Customizer work with single pages or posts?
- Enabling Sessions in WordPress 3.0
- can I orderby one custom field and meta_query another in the same query
- Hide a page in the admin end without a plugin?
- Prevent from deleting any user role but subscriber
- Managing Images for a WordPress Blog: Picasa or Flickr?
- In the new Theme Customizer API, how to send a value from the front back to the admin panel?
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- How do I add Post Like and Bookmark Functionality to my WordPress Site?
- How to exclude certain widget from showing up on home/front page? [duplicate]
- Selecting An image from the Media LIbrary on the frontend
- WordPress audio player has two different styles
- What is causing this error? “Warning: Invalid argument”
- How wp_ajax_nopriv since WordPress 3.1
- sanitize attachment filename
- Modifying loop on a custom page, strange behaviour
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- WordPress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?
- Set user loggin status?
- Intercept invalid email during lost_password
- Only append custom classes to nav menu items
- Custom Theme Want To Remove One Category From All Displays
- Add filename to attachment page url
- Show post page only if the user has bought a specific product
- redirect product-category to a custom page
- custom headers for static home page and posts page
- WP-Admin gives 403 Forbidden after login on CentOS 7
- How to redirect WooCommerce shop URL?
- How do I add a new template to my site
- Best way to implement a thumbnail-based gallery in WordPress?
- Why is my mod_rewrite not working?
- Show posts on a page based on a category and tag(s)
- Any tools for quickly grabbing comments / comment count?
- Custom WP_Query with no posts to output
- Create simple Cookie Box for WordPress
- How to remove buttons from the WP Editor on the edit post page in the admin area
- Adding Page Attributes and Page Templates to Custom Post Type WP 4.7.3
- Does wordpress prevent non wordpress pages from being allowed on the same domain?
- Different development environments (Mac & Windows)
- WordPress Locale Switching on Accept-Language Header
- Create custom fields as image uploads [duplicate]
- syntax highlighting for theme-editor.php?
- adding homework to a school’s website
- How to add custom page attributes in WordPress?
- How do I call in a category title on a category page in a child theme?
- How can I use a Tiny MCE editor in my custom Gutenberg block?
- Include custom JS without child theme
- Prepopulating a specific page template with HTML/CSS
- WordPress media uploader – upload tabs not hiding
- how to convert Html block to dynamic widget?