跳到内容

Image Alt Sync

v1.5.2

dufour_l · 2025年10月10日 上架

Sync image alt attributes in posts with Media Library text. Includes batch tools, filters, dry runs and WP-CLI support.

正在使用
30+
评分
暂无
累计下载
765
最近更新
2026年11月14日
需要 WordPress 5.4+已测试到 7.1.5PHP 7.0+

贡献者

Sync post image alt text with Media Library values. Includes batch tools, filters, dry runs and WP-CLI support.

Features:
* Batch processing with a configurable batch size and delay.
* Filter posts by status and date range.
* Limit processing to a range of post IDs.
* Optionally skip posts without image tags.
* Exclude image file extensions.
* Dry-run mode to preview changes without saving them.
* Detailed browser logs and WP-CLI support.
* Translated administration interface: English, French, Spanish, German, Italian, Portuguese and Dutch. English is used when no translation is available.

The plugin updates image markup in post content. It does not modify the Alt Text stored in the Media Library.

Always run a dry run first and review the proposed changes before processing posts for real.

Usage

  1. Choose the post status and optional date range.
  2. Optionally set a minimum and maximum post ID.
  3. Configure batch size and delay.
  4. Choose whether to skip posts without image tags and whether to exclude specific image extensions.
  5. Run a dry run and review the log.
  6. If the preview is correct, select No for Dry Run and start processing.
  7. Use Stop to stop after the current batch has completed.

WP-CLI

Run from the WordPress installation directory:

wp image-alt-sync run --status=publish --after=2025-01-01 --before=2025-08-13 --batch-size=100 --delay=1 --dry-run --low-id=1 --high-id=9999 --skip-noimg=1 --exclude-ext=".svg,.gif"

Available arguments:
* --status= publish, pending, draft, private or any (default: publish).
* --after= Start date in YYYY-MM-DD format.
* --before= End date in YYYY-MM-DD format.
* --batch-size= Number of posts per batch (default: 100).
* --delay= Delay between batches in seconds (default: 1).
* --dry-run Preview changes without saving them.
* --low-id= Minimum post ID.
* --high-id= Maximum post ID.
* --skip-noimg=1 Skip posts without image tags.
* --exclude-ext= Comma-separated image extensions to exclude.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums