Skip to content

Replace ACF Pro dependency with free SCF - #1

Merged
Schmandarine merged 1 commit into
mainfrom
feat/replace-acf-pro-with-scf
Jun 22, 2026
Merged

Schmandarine merged 1 commit into
mainfrom
feat/replace-acf-pro-with-scf

Conversation

@Schmandarine

Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the ACF Pro hard dependency with Secure Custom Fields (SCF) — the free, WordPress.org-maintained fork of ACF Pro
  • SCF defines ACF_PRO=true and exposes the identical API, so brmbh_has_acf_pro() and all block/field code work without any functional changes
  • Updates error messages and documentation to point to wordpress.org/plugins/secure-custom-fields instead of the paid ACF Pro page
  • ACF Pro still works for anyone who has a license — this is purely additive

Why

ACF Pro was the only paid dependency in an otherwise fully open-source stack. Anyone cloning the repo hit a paywall before they could run a single block. SCF removes that blocker completely.

What changed

File Change
inc/dependencies.php Error messages updated to reference SCF + free install link. Logic unchanged.
README.md Comparison table and stack line updated
AGENTS.md Hard dependency note updated

Test plan

  • Install SCF from wordpress.org/plugins/secure-custom-fields on a fresh WP install
  • Activate theme — no ACF Pro error notice should appear
  • All ACF blocks register correctly
  • wp brmbh scaffold runs without errors

🤖 Generated with Claude Code

Secure Custom Fields (SCF) is the free WordPress.org-maintained fork of
ACF Pro. It defines ACF_PRO=true and exposes the identical API — blocks,
repeater fields, field registration, and all helper functions work without
any code changes.

- dependencies.php: update messages to point to wordpress.org/plugins/secure-custom-fields
- README.md: "Requires ACF Pro" → "Requires SCF (free)" in comparison table and stack line
- AGENTS.md: update hard dependency note

The brmbh_has_acf_pro() check continues to work as-is since SCF defines
ACF_PRO=true. No functional changes — zero paywall blockers remain.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant