| 开发者 | jeanswiegers |
|---|---|
| 更新时间 | 2026年11月13日 13:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
photo-300x200.jpg in an old post) are kept and listed as "kept".wp size-shelf regenerate [<ids>...] [--missing] [--sizes=<names>] [--from=<date>] [--to=<date>] [--yes]
wp size-shelf sizes · wp size-shelf disable <size> · wp size-shelf enable <size>
wp size-shelf cleanup scan|list|trash|restore|empty
wp size-shelf job [status|resume|cancel]
Size Shelf Pro
An optional paid add-on for people who want this on autopilot: background and scheduled runs, regenerating a Media Shelf folder, custom image sizes without code, WebP/AVIF sizes, and per-post-type size rules. The free plugin is complete without it.
Privacy
Size Shelf sends nothing anywhere. It has no tracking, no remote calls and no external services. It stores its settings and run history in your database, and cleanup records in its own table.
No. Size Shelf never writes to, moves or deletes the uploaded originals (or WordPress's "-scaled" and "-rotated" copies). It only makes generated sizes, and cleanup only ever moves leftover generated sizes into its trash.
Progress is saved after every image. The next batch continues after the last finished image. If an image crashed PHP, it is marked as failed and the run goes on. If you close the page, the run waits as "Interrupted" with a Resume button.
A file is only listed if it looks like a generated size of an image (name-300x200.jpg), sits next to that image, and is not referenced by any image's metadata in that folder. Files of switched-off sizes are listed separately and only when you ask for them. Files whose names appear in post content or custom fields are kept. Every file is checked again right before it is moved.
In wp-content/uploads/size-shelf-trash/. Uninstalling removes Size Shelf's settings and tables but deliberately leaves the trash folder, so files can never be lost by uninstalling. Empty the trash from the Trash tab first if you don't need it.
Yes. Each site has its own sizes, runs, cleanup records and trash. It can be network-activated or activated per site.
Administrators (the manage_options capability). Developers can change this with the size_shelf_capability filter. Regenerating a single image also requires permission to edit it.
Yes. Their sizes appear in the list with the plugin named as the source, and you can switch off the ones your site doesn't use.
Size Shelf notes which sizes exist before and after your theme and plugins load, and matches size names to active plugins and the theme. It's a good guide, not a guarantee; sizes added in custom code may show as "A plugin or custom code".