
Field Finder for ACF
v2.0.0Jaydip Makwana · 2025年5月8日 上架
Find where ACF fields are used in your theme and plugin code, and list fields that are never used.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 674
- 最近更新
- 2026年11月18日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+
贡献者
Field Finder for ACF is a developer tool. It scans your code and shows exactly where an Advanced Custom Field is read or written.
Find a field
- Search by field name, field key (
field_…) or pattern such ashero_* - Field name suggestions with label, type and field group
- File, line number and code snippet for every match
- Detects
get_field,the_field,get_sub_field,the_sub_field,have_rows,get_field_object,update_field,delete_field,add_rowand more - Detects
[acf field="…"]shortcodes in code and, optionally, in post content - Ignores commented-out code
- Lists dynamic calls such as
get_field( $name )separately, because they cannot be checked
Unused fields report
Lists every ACF field with how often it appears in your code. Fields with no matches are shown first.
Scan scope
Active theme, parent theme, plugins, must-use plugins or a custom folder. Optionally scan Twig templates and ACF block.json example data.
Built for large sites
- Scans in batches with a progress bar, so it does not time out
- Caches results per file (by modified time), so repeat searches are fast
- Skips
node_modules,vendor,.gitand very large files
Export and CLI
- Download results as CSV or JSON
- WP-CLI:
wp field-finder search <field>,wp field-finder unused,wp field-finder clear-cache
Developer hooks
fielffoa_functions– ACF function names to look forfielffoa_excluded_dirs– folder names to skipfielffoa_max_file_size– largest file (bytes) to parsefielffoa_scan_roots– folders to scanfielffoa_batch_seconds– seconds spent per AJAX batch