OG Media File Renamer¶
OG Media File Renamer gives your media files clean, SEO-friendly names. It can also keep each file's Title, ALT text, caption and description in step, and it updates the links to the file on your site.
Requires: WordPress 6.0+ and PHP 8.1+. The AI features also need OG AI Core.
Product page: OG Media File Renamer
Back up first
Renaming changes the address of each file. Back up your database and your uploads folder before you rename anything. Try a few files first, then use bulk renaming.
Who it's for¶
Site owners, shops, bloggers and agencies whose Media Library is full of names like IMG_4521.jpg or image-1789598151375.webp. Use it when you want file names, titles and ALT text that help your SEO, without renaming every file by hand.
Install and activate¶
- Download the zip from My Account > Licences on og-nexus.com.
- In WordPress, go to Plugins > Add New > Upload Plugin, upload the zip and activate it.
- Open the plugin's Licence section, paste your licence key and save.
The full steps are in Install and activate.
The Pro features arrive when your licence is active. Without an active licence, the basic renaming features still work. Features that need an active licence are marked on this page.
Where to find it¶
- Settings: in the OG menu (called OG Nexus, or OG AI Core when OG AI Core is installed), under Media, open Media Renamer.
- Sections: Renaming is always shown. Advanced appears when you turn on the Expert switch at the top right. Developer appears when Dev Tools is on. Licence holds your licence key.
- The rename list (Dashboard): click Dashboard at the top of the Media Renamer screen. This is where you rename, lock, undo and move files. Its address is
wp-admin/upload.php?page=ogmr_dashboard. - Media Library: a Renamer column in the list view, and a Renamer box on each Edit Media page. You can switch these off (see UI).
- Block editor: a Media File Renamer panel with a Skip Rename on Save checkbox, when On Post Save renaming is on for that post type.
Only administrators can use the rename features. The settings need the manage_options capability.
Tip
Settings save themselves as you change them. There is no Save button.
Settings¶
Renaming Methods¶
These choose how a new filename is made, depending on what started the rename. The tabs are Auto, Manual, On Upload and On Post Save. On Upload and On Post Save only show when Expert is on.
Auto¶
Used by Rename All, by bulk renames and by the Auto button in the Dashboard.
| Setting | What it does |
|---|---|
| Method (three lists) | The first, second and third method. They are tried in order until one gives a name. |
| ACF Field Name | The custom field to read when a method is Attached Post (ACF Field). |
| Hide "No Method" Warning | Hides the warning you get when you auto rename with no method selected. |
| Attachment Update (Trigger Rename) | Renames the file automatically whenever the attachment's details change. While this is on, Fields Syncing is switched off, to avoid an endless rename loop. |
| Lock On Rename | Locks a file after an automatic rename, so it is not renamed again. Shown when Lock is on. |
The methods are:
| Method | Name comes from | Needs an active licence |
|---|---|---|
| None | Nothing. The current name is only cleaned up, plus your own rules and filters. | No |
| Based on Media Title | The media's title. | No |
| Based on Alternative Text | The ALT text. | No |
| Based on Attached Post (ACF Field) | A custom field on the post the media is attached to. | Yes |
| Based on Attached Post (Title) | The title of the post the media is attached to (posts, pages, products and other types). | Yes |
| Anonymize with MD5 | A hash, so the name gives nothing away. | Yes |
| AI Vision | The AI looks at the image and suggests a name. | Yes, plus OG AI Core and AI Vision turned on |
Manual¶
Used when you type a new filename and apply it.
| Setting | What it does |
|---|---|
| Rename Field | Adds an editable filename field. |
| Sanitize | Cleans whatever you type, so the filename is safe and tidy. On by default. |
| Lock On Rename | Locks a file after you rename it by hand. On by default. Shown when Lock is on. |
On Upload¶
What happens to new files as they are uploaded. Off by default.
| Option | What it does | Needs an active licence |
|---|---|---|
| None | Nothing happens on upload. | No |
| Clean Upload | Cleans the original filename and uses it. | No |
| EXIF Title | Uses the image's EXIF title, if it has one. | No |
| AI Vision | The AI names the file and can write the title, description and ALT text. This makes uploads slower. | Yes, plus OG AI Core |
Run Later (5 min) processes uploads in a scheduled task five minutes later instead of straight away.
On the Upload New Media screen, a Media File Renamer On Upload line shows the current method. Tick its checkbox to skip it for your own uploads in this browser.
Note
The attached post's title is not used at upload time. WordPress does not know the post yet.
On Post Save¶
Renames a post's attached media, with the Auto methods, when you save the post.
| Setting | What it does |
|---|---|
| Rename on Post Save | Turns this on. Use it when you change media titles while editing a post; the files and the HTML are updated after you save. |
| Only When Title Changes | Renames only when the post title changes, or the first time the post is published. On by default. Turn it off if your methods use other fields, such as Media Title, ALT text or ACF. |
| Post Types | The post types that trigger the rename. Default: posts, pages and products. |
If AI Vision is one of your Auto methods, a file that was already renamed with AI Vision is not renamed again on save.
Sync Fields¶
Rewrites the media's Title, Description, ALT Text and Caption after a rename. There is one tab for each way a rename can happen: Manual, each Auto method you selected, and each On Upload method you selected. In each tab, tick Synchronize (or Generate for AI Vision on upload) next to the fields you want rewritten.
Field syncing needs an active licence, except for the Clean Upload and EXIF Upload tabs.
Note
Syncing updates the details in the Media Library. It does not change the HTML in your posts.
The All tab holds settings that apply to every rename:
| Setting | What it does |
|---|---|
| Slug/Permalink | Also renames the media's slug. Best left off, because the old link may be used elsewhere. |
| GUID | Also renames the GUID. Best left off. |
AI¶
Needs OG AI Core, installed and set up. Until it is, these settings are greyed out.
Basic tab:
| Setting | What it does |
|---|---|
| AI Suggestions | Adds AI suggestions when you rename in the Dashboard. |
| AI Vision | The AI looks at the picture itself to suggest filenames and details. Needs AI Suggestions and an active licence. |
Advanced tab (with Expert on):
| Setting | What it does |
|---|---|
| EXIF Context | Gives the AI the image's EXIF title, caption and keywords as extra hints. |
| AI Vision Cache | Keeps the AI's description of each image for a while (one day by default), so later suggestions are faster and use fewer AI requests. |
| Manual Prompts | Lets you change the instructions sent to the AI for each field: Prompt for Filename, Prompt for Title, Prompt for Description, Prompt for ALT Text and Prompt for Caption. |
| Attached Post Context | If the media is attached to a post, the post's content is used to improve the suggestions. |
The AI also uses the focus keyword of the media or its attached post, when your SEO plugin has one. OG AI SEO keywords are read first.
Videos: AI Vision uses the video's poster image. If there is none, it takes one frame from the video. That needs ffmpeg installed on your server and PHP allowed to run it. Without either, the suggestion is made from the text details only.
UI¶
Renamer tab:
| Setting | What it does |
|---|---|
| Dashboard | Turns the Dashboard (the rename list) on or off. On by default. |
| Lock | Adds a lock icon, so you can lock a file against future renames. |
| Undo | Adds an undo icon to go back to the original filename. |
| Manual Sync Fields | Adds Sync Fields buttons when you select entries in the Dashboard. |
| Never Renamed, Pending, Renamed (under Filters) | Shows each filter in the Dashboard. All on by default. |
| Attached To (under Columns) | Shows the post each media is attached to. |
| History (under Columns) | Adds a History column with the last names and details of each file. |
| Metadata Fields | Which fields show, and can be edited, in the Dashboard: Title and ALT Text by default, plus Description and Caption. |
WordPress tab:
| Setting | What it does |
|---|---|
| Media Library | What shows in the Media Library list and on Edit Media: None, Rename Field with All Features (default) or Rename Button -> Modal. |
Pending¶
Scans your library to find files whose name does not match your first Auto method. New uploads are checked automatically. Click Re-Analyze Media Library to check existing files, for example after you change your Auto method.
Advanced¶
Shown when Expert is on.
Scope
| Setting | What it does |
|---|---|
| Images Only | Only images and icons are renamed. |
| Featured Only | Only featured images are renamed. |
Rules
| Setting | What it does | Needs an active licence |
|---|---|---|
| Transliteration | Replaces accents, emoji and other tricky characters with plain letters, for example tête becomes tete. |
Yes |
| Unique Filenames | When the new name is already taken: None skips the file, Increment adds a number, Hash adds a short hash, Random adds a random string. | Yes |
| Filename Prefix / Filename Suffix | Text added to the start or end of every new name. | No |
| Filename Replace | Replacements written as old=>new, separated by commas. Example: jellybean=>bean. |
No |
| Filename Replace (Regex) | The same with regular expressions. Example: jellybean(.*)=>bean${1}. |
No |
| Test Rules | Shows what your rules do to a sample name. The file extension is never changed. | No |
For Developers
| Setting | What it does | Needs an active licence |
|---|---|---|
| Delay (in ms) | Wait between requests in bulk actions. Raise it on slow or shared hosting. Default: 100. | No |
| Case Insensitive | Treats abc.jpg and ABC.JPG as the same file. Turn it on if your server's file system ignores case. |
No |
| Force Rename | Updates the references to a file even if renaming the file itself failed. For repairing sites whose files were renamed outside WordPress. | Yes |
| Logs | Simple log of what the plugin did, with Refresh Logs and Clear Logs. | No |
| PHP Error Logs | Also writes the log to the PHP error log. | No |
| SQL Logs | Writes the SQL queries run, and a revert file, to your uploads folder. | Yes |
Side Updates
When a file is renamed, these update the links to it. Every site is different, so test them.
| Setting | Updates the old address in | Default |
|---|---|---|
| Posts | Post content, for all post types. | On |
| Excerpts | Post excerpts. | Off |
| Post Meta | The post meta table. Powerful, but can affect plugins that store data in unusual formats. | Off |
| Options | The options table. Same caution as Post Meta. | Off |
Parsers lists the page builders and plugins the renamer can update when they are installed: Elementor, Oxygen Builder, Beaver Builder, WPML and WooCommerce. Use Disable Parser to turn one off. The parsers need an active licence.
Advanced Features
| Setting | What it does | Needs an active licence |
|---|---|---|
| Hide Locked | Hides locked files from the Dashboard tabs. They still show under Locked. On by default. | No |
| Apply or Cancel | Asks you to apply or cancel each proposed change before it is made. On by default. | No |
| Move | Adds a Move button to move a file to another folder in uploads. |
Yes |
| Allow Empty Values | Lets you clear a title, ALT text, caption or description. Normally empty values are ignored. | No |
| History Limit | How many entries the History column keeps. Default: 4. | No |
For Advanced Users & Developers
| Setting | What it does |
|---|---|
| Intro Message | Shows the intro text at the top of the settings. |
| Dev Tools | Shows the Developer section. |
| Plugin Data (Delete all) | Removes the plugin's settings and data when you delete the plugin. See Uninstalling. |
| Export Options / Import Options | Save your settings to a file, or load them. |
| Reset Options | Puts every setting back to its default. |
| Reset Metadata | Removes the lock and renamed status from all media. |
Common tasks¶
Rename one file¶
- Open the Dashboard.
- Find the file. Use the filters: All, Pending, Renamed, Never Renamed and Locked.
- Type a new name in the filename field and apply it. Or click Auto to use your Auto methods.
- With AI Suggestions on, ask for AI suggestions on the file to get five names, then pick one.
Rename the whole library¶
- Back up your database and
uploadsfolder. - In Renaming > Auto, choose your methods.
- Open the Dashboard and click Analyze Library.
- Click Rename All, read the warning, and start. Keep the tab open until it finishes.
- If a file fails, choose Retry, Skip, Auto Retry or Auto Skip.
To rename only some files, tick them and click Rename N Entries.
Fill in titles and ALT text with AI¶
- Install and set up OG AI Core.
- Turn on AI Suggestions and AI Vision in the AI card.
- In the Dashboard, select the files and click Sync Fields. With no selection, use Sync Fields for all unlocked entries in the current view.
- Choose Sync with Auto Method, Sync with Filename or Generate with AI Vision.
- Optional: tick Only Empty Fields so existing values are never overwritten.
- Click Run.
Protect files from renaming¶
- Turn on Lock in UI > Renamer.
- In the Dashboard, click the lock icon on a file, or select files and click Lock N Entries. Lock All locks every file.
To keep a file's current name without locking it, select it and click Keep N Filenames. This marks it as OK and removes it from Pending.
Undo a rename¶
- Turn on Undo in UI > Renamer.
- Click the undo icon on a file, or select files and click Undo N Entries. Undo All puts back every original name.
Move files to another folder¶
Needs an active licence.
- Turn on Move in Advanced > Advanced Features.
- In the Dashboard, set Mode to Move.
- Select the files, click Move N Entries, and choose a folder inside
uploads(for example2026/12). You can use Create Folder there.
Attach images to the posts that use them¶
Needs an active licence, and a scan with OG Media Cleaner first, so the media references exist.
- Open the Dashboard.
- Click Auto-Attach All Media Entries, or select files and click Auto-Attach Selected Media Entries.
Featured images and product galleries are supported.
FAQ and troubleshooting¶
Some pages still show the old file address¶
Clear your page cache and any CDN cache. Check that Posts is on under Side Updates. If the address is stored somewhere else, try Post Meta or Options, or the matching parser. Some page builders store content in an encoded form, which can limit updates on those pages.
"The filename proposed by … already exists"¶
Another file already has that name. Pick another method, rename by hand, or turn on Unique Filenames in Advanced > Rules.
Auto renaming does nothing¶
Check that at least one Auto method is selected. With None, the plugin only cleans up the current name. Also check the file is not locked, and that Images Only or Featured Only do not exclude it.
The AI settings are greyed out¶
Install and set up OG AI Core. AI Vision also needs an active licence.
AI suggestions for a video don't describe it¶
The video needs a poster image, or ffmpeg on your server so a frame can be taken. Ask your host if you are unsure.
Bulk renaming times out¶
Raise Delay (in ms) in Advanced > For Developers. Use Auto Retry when an error appears.
The rename was wrong¶
Use Undo to go back to the original filename. The original name is stored with each file.
Uninstalling¶
Deactivating the plugin keeps everything. Renamed files keep their new names.
When you delete the plugin, data is only removed if Plugin Data (Delete all) is ticked in Advanced > For Advanced Users & Developers. Then the plugin removes:
- every option whose name starts with
ogmr_, including all settings - the lock, pending, original-filename and "keep filename" markers on your media
Your files are not renamed back. If you want the original names, use Undo All before you uninstall. Log files in uploads are not deleted.
For developers¶
Hooks, REST routes, WP-CLI commands and data keys are in the developer's guide.