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

Context_Aware_Preprocessor::preprocess_with_contextpublicWC 1.0

Method to preprocess the content before rendering with context.

Method of the class: Context_Aware_Preprocessor{}

No Hooks.

Returns

Array.

Usage

$Context_Aware_Preprocessor = new Context_Aware_Preprocessor();
$Context_Aware_Preprocessor->preprocess_with_context( $parsed_blocks, $layout, $styles, ?Rendering_Context $rendering_context ): array;
$parsed_blocks(array) (required)
Parsed blocks of the email.
$layout(array) (required)
.
$styles(array) (required)
.
?Rendering_Context $rendering_context
.
Default: null

Context_Aware_Preprocessor::preprocess_with_context() code WC 10.9.4

public function preprocess_with_context( array $parsed_blocks, array $layout, array $styles, ?Rendering_Context $rendering_context = null ): array;