Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Build Gutenberg blocks with ACF using PHP classes.
Build Gutenberg blocks with ACF using PHP classes.
This library provides a structured way to create Gutenberg blocks using Advanced Custom Fields (ACF). It is designed for developers who want to organize block logic and templates separately using PHP classes. By extending abstract block constructors, you can register blocks, define ACF fields, and pass data to frontend templates without mixing concerns.
AbstractBlock or AbstractBladeBlock to define block settings, fields, and controller methods. Blocks are registered via a filter, giving you full control over which blocks load.with() method to pass variables from your controller to the view. The controller instance is also available in templates via $controller, enabling advanced OOP patterns.AbstractBladeBlock to use Blade templating. A filter lets you customize the Blade engine callable if needed.acf_gutenblocks/block_settings and acf_gutenblocks/render_block_frontend_path.No comments yet. Be the first to start the conversation!
Updated
Downloads
Author
Updated
Downloads
Author