WordPress plugin intelligence profile

Clear Media Title On Upload

Clears the media title field on upload, instead of setting it to the slugified filename.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.9
Current version2.0.1
WordPress coverageTested up to WordPress 6.9
Minimum stackWP 6.0 · PHP 7.4
Directory statusactive
Last directory update27 Jan 20269mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Clear Media Title On Upload version 2.0.1 as active, updated 9mo ago and tested up to WordPress 6.9.

Overview

About this plugin

When you upload media to WordPress, the title field is automatically set to a slugified version of the filename. This often results in messy, unoptimized titles like “IMG-20240115-photo-final-v2” appearing in gallery captions, alt tags, or title attributes.

This plugin clears the title field for newly uploaded media, ensuring that if a title is displayed anywhere, it’s one you’ve intentionally set yourself.

Features

  • Automatically clears the title field for new media uploads
  • Bulk action to clear titles on existing media library items
  • Lightweight with no settings page required
  • Developer-friendly with filters

How It Works

The plugin hooks into WordPress’s wp_insert_attachment_data filter and clears the post_title field for new uploads before they are saved to the database.

Filters

runthings_emt_skip

Skip clearing the title for specific attachments.

Parameters:

  • $skip (bool) – Whether to skip clearing the title. Default false.
  • $data (array) – Attachment post data (slashed, sanitized, processed).
  • $postarr (array) – Sanitized post data (not processed).
  • $unsanitized_postarr (array) – Unsanitized post data.
  • $update (bool) – Whether this is an update (always false for new uploads).

Example:

// Skip clearing title for uploads by specific user add_filter('runthings_emt_skip', function($skip, $data, $postarr) { if (get_current_user_id() === 1) { return true; // Admin keeps auto-generated titles } return $skip; }, 10, 3);

// Skip clearing title if filename contains "keep-title" add_filter('runthings_emt_skip', function($skip, $data, $postarr) { $filename = $postarr['post_title']?? == false) { return true; } return $skip; }, 10, 3);

runthings_emt_mime_types

Filter which MIME types should have their title cleared. By default, all media types are affected.

Parameters:

  • $allowed_mime_types (array) – Array of MIME type patterns. Default [] (all types).
  • $attachment_mime_type (string) – The attachment’s MIME type.
  • $postarr (array) – Sanitized post data.

Example:

// Restrict to images only add_filter('runthings_emt_mime_types', function($allowed_mime_types) { return ['image']; });

// Restrict to images and PDFs only add_filter('runthings_emt_mime_types', function($allowed_mime_types) { return ['image', 'application/pdf']; });

Additional Notes

dev, copyright 2022-2026.

dev for more WordPress plugins and resources.

Contribute or report issues at the GitHub repository.

com/icon/insert-space-239543/

com/icon/image-661355/

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • attachment
  • images
  • media
  • title
  • upload
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.9
Minimum requirementsWordPress 6.0 · PHP 7.4
Update activity27 Jan 20269mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.