Automattic\WooCommerce\Blocks\Templates

AbstractTemplateCompatibility::inject_hookspublicWC 1.0

Inject hooks to rendered content of corresponding blocks.

Method of the class: AbstractTemplateCompatibility{}

No Hooks.

Returns

String.

Usage

$AbstractTemplateCompatibility = new AbstractTemplateCompatibility();
$AbstractTemplateCompatibility->inject_hooks( $block_content, $block );
$block_content(mixed) (required)
The rendered block content.
$block(mixed) (required)
The parsed block data.

AbstractTemplateCompatibility::inject_hooks() code WC 9.9.5

abstract public function inject_hooks( $block_content, $block );