(Answering my own question, with help from @brasofilo)
WordPress 3.5 has a great new Media manager, and it no longer requires the Title to be filled in for images. It also no longer fills in the Title automatically when reorganizing images in a Gallery. It does, however, still fill in the Title with the image filename when uploading the image, such as “DSCN1234”. But this can be prevented by adding the following code to the functions.php
file in your theme:
add_action( 'add_attachment', 'wpse_70093_modify_uploaded_file_title' );
function wpse_70093_modify_uploaded_file_title( $attachment_ID )
{
$the_post = array();
$the_post['ID'] = $attachment_ID;
$the_post['post_title'] = '';
wp_update_post( $the_post );
}
After the image is uploaded, the Title will be empty, and it’ll stay that way unless you specifically set it to something – even if the image is edited in WordPress.
Related Posts:
- hook into completed image upload filter
- What’s the proper way to use the get_image_tag filter?
- How to display a warning when an uploaded image is too small?
- How to trigger “wp_handle_upload_prefilter” filter when uploading an image programatically?
- Rename uploads filenames to POST-ID on upload
- Image Upload from URL
- get attachment title based on attachment id
- Upload images to remote server
- Prevent WordPress from adding image’ title automatically
- How to insert images into posts without using Add Media dialog
- Media Upload Folder – how to manage
- Change WordPress image URLs via filter
- Upload multiple images in a custom metabox
- Saving the pre-sanitized filename of an attachment as the Title or Caption
- getting uploaded SVG dimensions on front-end
- Bulk edit wordpress images alt and title attributes
- Automating a Daily Picture Blog?
- Images uploading to wrong folder
- Replace all of post’s image URLs with upload directory URLs
- Filter Media Library by author or post_parent
- Alter media caption/description conflict in WordPress?
- Restrict the number of images to upload per post
- How to display a shortcode caption somewhere other than the_content
- Frontend image uploading from edit profile page. (goldenapples)
- Image size filtering in Media uploader according to custom post type
- Rename attachments during upload
- Automatically Add Caption in image
- Uploading images to Media Library fails with Memory Exhausted
- Edit image preview is not displayed
- Rename image during upload using date and time stamp?
- How to set a Minimum Image Dimension for Uploading
- What’s the best “insert all images” plugin?
- Is 700,00 jpgs too many for a WordPress site.?
- Different upload path per file type
- Animated Gif image not uploading correctly
- HTML tags in WordPress image caption
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- Is there a plugin or simple way to add a multiple images metabox to a post?
- How can I upload an image for background use using the Theme Editor in WordPress?
- Generating different dimension images while uploading image file from custom plugin page
- Show media url immediately after upload in media uploader
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Image upload appearing as broken images following server move
- Migration to WP – Couldn’t load image
- How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product
- Disable auto-resizing of uploaded images, but only for certain filename
- Get image URL after image created from canvas and sent to WP uploads with AJAX
- How do I fix “Sorry, this file type is not permitted for security reasons”
- an error occurred in the upload. please try again later (Maybe File Permission Issue)
- Auto delete attachments that are older than x days
- wp_upload_bits Upload Specific Sizes Only
- Change wp-content/uploads to uploads/%postname%/%image%
- Redirect to another page using contact form 7? [closed]
- Does wp_get_attachment_image_src also work with non-image files?
- convert post title to image
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Upload media only to DB
- How to get the real file type for images that do not have an extension
- Images are not showing up in “Uploaded to this post”
- WordPress Creates Unused (Unregistered) Image Sizes
- Images don’t update after being edited
- Is there a way in WordPress to convert images to WebP without a plugin?
- Images not found after migrating WordPress website
- Some Images Disappeared from Media Library?
- Error uploading images in wordpress
- Prevent WP from wrapping html in caption shortcode after ‘image_send_editor’ filter is applied
- Disable image rename on upload
- HTTP error when uploading an image
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- Upload images – Theme options
- image URL changed in wordpress
- image upload/edit is broken: “Image data does not exist. Please re-upload the image.”
- WordPress append -1 to the image name
- Save media files (images) to database instead of the filesystem
- Link to products with the same image title (woocommerce)
- Recreate the upload folder from a website without having access to the backend/cpanel/filezilla directly from the website
- how automatically show the image title before the image caption/description in a wordpress gallery?
- media_handle_upload() with 1 image under 1Mb chokes my server and returns timeout error
- Could creation of various image sizes cause slow form submission response?
- Updated wordpress missing image upload area
- Change wordpress default upload path to another domain
- How to attach post ID to image links in WordPress tinymce editor
- How to stop a post from publishing if the file upload is not a image/gif
- Troubles with code for upload a image
- WAMP install acts different than live install when uploading images
- 403 Forbidden when accessing image in wordpress
- How can I hook and edit on the fly an image uploaded
- problem with updating metabox of upload image
- Assign one featured image to multiple posts?
- Removing image dimensions from `the_content`
- Media upload in add comment meta box
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- My image rotate 90 degree
- wp_handle_upload Image sizes
- What type to upload image within theme options?
- Can’t manage to display an uploaded picture (uploaded from a custom button) in the front end
- How to add a link to media file for every image inserted in content?
- What does WordPress media uploader do to image files on upload?
- How to get WordPress to resize images for srcset?
- Uploading media to wordpress API with C# HttpClient