Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors

Preprocessor::preprocesspublicWC 1.0

Method to preprocess the content before rendering

Method of the class: Preprocessor{}

No Hooks.

Returns

Array.

Usage

$Preprocessor = new Preprocessor();
$Preprocessor->preprocess( $parsed_blocks, $layout, $styles ): array;
$parsed_blocks(array) (required)
Parsed blocks of the email.
$layout(array) (required)
.
$styles(array) (required)
.

Preprocessor::preprocess() code WC 10.5.0

public function preprocess( array $parsed_blocks, array $layout, array $styles ): array;