Building a Reusable Plugin for All Your ACF Projects
Channel: WP Engine Builders
Date: 2023-08-30

It is critical to be efficient with your time while developing multiple WordPress client projects. Perhaps you are recreating the same custom post types, field groups, or blocks. Or, you want to start scaling your reoccurring tasks to onboard your growing team of developers.

Learn to create a custom WordPress plugin that utilizes ACF PRO’s sync features and saves all your custom post types, field groups, taxonomies, and blocks in a single plugin, which you can reuse on each of your projects and save time.

This session will cover:

✔️ Creating a WordPress plugin

✔️ Integrating ACF’s custom load and save JSON sync saving for custom post types, field groups, taxonomies, and options pages

✔️ Leveraging ACF filters to hide key admin screens from your clients

00:00 Intro
00:48 Slides & QR code
01:07 Review Zoom poll survey responses
02:00 Workshop Etiquette & QR code for plugin
02:50 What we're building (in our plugin)
05:22 Why we're building (the plugin)
07:06 Overview of demo WordPress site setup (plugins, users, etc.)
08:37 Install Demo ACF Plugin
09:37 Activate Demo ACF Plugin with Site Settings peek
10:22 Start reviewing the Demo ACF Plugin's code and organization
12:05 Setting custom ACF JSON sync load & save directories
16:50 ACF Blocks custom helpers for registering, custom block category and more
23:20 ACF Options Page registration for 'Site Settings' page with associated field groups
27:50 Show template tags for displaying the Notification Bar
29:41 Restricting access to ACF admin by role + email domain
32:31 Wrapping up (final plugin QR code again)
32:56 Question: why a plugin and not a theme?
34:20 Outro / Bye 👋

Related resources:
- Demo ACF Plugin 📁 https://wpeng.in/669eca/
- Presentation slides: https://wpeng.in/0e4556/
- ACF PRO: https://www.advancedcustomfields.com/pro/