WebberZone Image Optimizer WP-CLI
WebberZone Image Optimizer registers WP-CLI commands under wp wzio, useful for converting a library from a script, cron job, or deployment step without opening the admin screens.
wp wzio status
Shows which drivers and formats this server can encode, the currently configured formats, and how much of the library is converted.
wp wzio status
wp wzio convert
Converts one or more attachments immediately.
wp wzio convert 7214
wp wzio convert --formats=webp,avif --force
[<id>...]— attachment IDs to convert. Omit to convert everything not yet handled.[--force]— re-encode even when an up-to-date optimized copy already exists.[--formats=<formats>]— comma-separated list of formats to generate, overriding the settings.[--dry-run]— report what would be converted without writing anything.
wp wzio queue
Adds every unconverted attachment to the background queue, the same queue the Bulk Optimize screen uses.
wp wzio queue
[--force]— requeue attachments that already have a conversion record.
wp wzio run
Works through the queue in batches until it is empty (or a batch limit is reached).
wp wzio run
[--batch=<size>]— attachments per batch. Defaults to the configured Images per batch setting.[--max-batches=<count>]— stop after this many batches. Defaults to running until the queue is empty.
If another worker holds the queue lock, the command reports an error and exits rather than processing concurrently.
wp wzio clean
Deletes the generated WebP/AVIF files for one or more attachments. Original images are never touched.
wp wzio clean 7214
[<id>...]— attachment IDs. Omit to clean every attachment that has a conversion record (prompts for confirmation unless--yesis passed).[--yes]— skip the confirmation prompt.