ACF\Pro\AI\GEO\Outputs

Blocks::init │ public │ ACF 6.8.0

Initialize the GEO Blocks extension.

Method of the class: Blocks{}

No Hooks.

Returns

void. Nothing (null).

Usage

$Blocks = new Blocks();
$Blocks->init();

Changelog

Since 6.8.0 Introduced.

Blocks::init() code ACF 6.8.8

public function init() {
	// Add support for autoJsonLd property from block.json ACF namespace.
	add_filter( 'block_type_metadata_settings', array( $this, 'add_block_json_auto_jsonld_support' ), 10, 2 );

	// Add support for autoJsonLd property from programmatic registration.
	add_filter( 'acf/register_block_type_args', array( $this, 'add_programmatic_auto_jsonld_support' ) );

	// Add front-end JSON-LD output for blocks.
	add_action( 'acf/blocks/pre_block_template_render', array( $this, 'output_block_jsonld_data' ), 10, 6 );
}