跳到内容

Fieldsweep for ACF

v1.0.0

anu771063 · 2026年11月19日 上架

Audit your custom fields: which hold data, which your theme reads, which are never filled in, left-behind data and broken links. Clean up safely.

正在使用
10 以下
评分
暂无
累计下载
110
最近更新
2026年11月19日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

贡献者

Sites that use Advanced Custom Fields collect fields over the years. Some were added for a design that was later dropped, some were deleted but left their values in the database, and some point to images or posts that were removed long ago. Nobody knows which fields are safe to delete, so they stay forever.

Fieldsweep answers that question for every field, then helps you clean up in a way that can always be undone.

What it tells you about each field

  • Status: used (holds data and your code reads it), data not in code, in code but never filled in, or unused.
  • Stored on: how many pages, posts, products, terms, users, comments, options pages and blocks hold a value.
  • Filled in: how often it is actually filled, for example “Subtitle: 2 of 4 pages (50%)”. Fields that are always saved empty are listed too.
  • Where the code reads it: each file and line in your theme where the field is read with get_field(), the_field(), have_rows(), get_sub_field(), get_post_meta() and similar calls, including Twig templates.
  • Stored values: the items that hold a value, with links to edit them.

Sub fields of repeaters, groups and flexible content layouts are covered, each with its full path, for example “Slides > Image”. Field groups saved in the database, in JSON files and in PHP code are all included.

What it finds

  • Left-behind data: values saved for fields that were later deleted. ACF does not remove them, so they stay in the database. Fieldsweep finds them on posts, terms, users, comments and options pages, and shows how much space they use.
  • Broken links: image, file, gallery, post object, page link, relationship, user and taxonomy fields that still point to media, posts, users or terms that were deleted or moved to the trash. These show up as broken images or empty links on the site.
  • Unused fields: fields with no data that your code never reads. These are usually safe to delete in ACF.

Safe clean-up

  • The scan only reads. Nothing changes until you choose a clean-up and confirm it.
  • Everything goes to a bin first. Each clean-up is kept with the exact stored values, and one click restores it.
  • Newer edits are never overwritten. If something new was saved in a place since the clean-up, restoring skips that value.
  • Broken link fixes keep the rest of the value. Only the missing IDs are removed; the other images in a gallery stay.
  • Only data of deleted fields counts as left behind. Fields in disabled or trashed field groups, and fields defined in JSON or PHP, are never treated as deleted. While ACF is inactive, nothing can be cleaned.
  • Uninstalling puts everything in the bin back, so removing the plugin never loses data.

For developers

WP-CLI commands:

  • wp fieldsweep scan
  • wp fieldsweep fields --status=unused --format=csv
  • wp fieldsweep orphans
  • wp fieldsweep clean-orphans --yes
  • wp fieldsweep fix-broken --yes
  • wp fieldsweep bin and wp fieldsweep restore <batch>

The Fields screen can be downloaded as a CSV file.

Privacy

Fieldsweep makes no requests to other servers, adds nothing to the front of your site and collects no data. It reads your field groups, the values stored for them and your theme’s code files, and keeps the result in your own database.

Advanced Custom Fields and ACF are trademarks of WP Engine. Fieldsweep is an independent plugin and is not affiliated with or endorsed by WP Engine.

Plums

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

导航

说明

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

© 2026 Plums