=== Replace & Rename Media Files ===
Contributors: anandau14
Tags: media, images, rename, replace, file size
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 0.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Replace existing media files, rename media files, and display file sizes in the WordPress media library.

== Description ==

Replace & Rename Media Files is a powerful plugin that enhances the WordPress media library by adding the following features:

= File Replacement =
* Replace existing media files while preserving attachment IDs and relationships
* Keep all metadata and post connections intact
* Support for all media file types including images, documents, videos, and more

= File Renaming =
* Rename media files directly from the media library
* Update all references and links automatically
* Handle special characters and proper sanitization

= File Size Display =
* Add a new sortable column in the media library showing file sizes
* Format file sizes in human-readable format (KB, MB, GB)
* Include file size information in attachment details


== Installation ==

1. Upload the `replace-rename-media` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Media > Replace & Rename to configure plugin settings

== Frequently Asked Questions ==

= Will replacing a file maintain its attachment ID? =

Yes, when you replace a file, it keeps the same attachment ID and all relationships to posts and pages remain intact.

= Will renaming update URLs in my content? =

Yes, the plugin automatically updates URLs in post content when you rename files to ensure all links remain working.


== Changelog ==

= 0.1 =
* Initial release

