Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors
Preprocessor::preprocess
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{contentSize: string, wideSize?: string, allowEditing?: bool, allowCustomContentAndWideSize?: bool}) (required)
- Layout of the email.
- $styles(array) (required)
- .
Preprocessor::preprocess() Preprocessor::preprocess code WC 11.3.0
public function preprocess( array $parsed_blocks, array $layout, array $styles ): array;