Wordless
Stop writing themes like it's 1998.
Public Member Functions | List of all members
AcfGutenbergBlockHelper Class Reference

This module provides methods to register a Gutenberg Block to be selected within ACF Field Group options, in the Rules panel. More...

Public Member Functions

 create_acf_block (string $block_name, array $params)
 Creates and registers ACF Gutenberg block. More...
 
 _acf_block_render_callback ( $block)
 NO_DOC: This function is not meant to be used in a theme. More...
 

Detailed Description

This module provides methods to register a Gutenberg Block to be selected within ACF Field Group options, in the Rules panel.

Member Function Documentation

◆ _acf_block_render_callback()

AcfGutenbergBlockHelper::_acf_block_render_callback (   $block)

NO_DOC: This function is not meant to be used in a theme.

It needs to be public because of the implementation of ACF function acf_register_block. If set as private, ACF loses the context and is not able to call it.