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

Context_Aware_Preprocessor::preprocess_with_context │ public │ WC 1.0

Method to preprocess the content before rendering with context.

Метод класса: Context_Aware_Preprocessor{}

Хуков нет.

Возвращает

array.

Использование

$Context_Aware_Preprocessor = new Context_Aware_Preprocessor();
$Context_Aware_Preprocessor->preprocess_with_context( $parsed_blocks, $layout, $styles, ?Rendering_Context $rendering_context ): array;
$parsed_blocks(массив) (обязательный)
Parsed blocks of the email.
$layout(array{contentSize: string, wideSize?: string, allowEditing?: bool, allowCustomContentAndWideSize?: bool}) (обязательный)
Layout of the email.
$styles(массив) (обязательный)
.
?Rendering_Context $rendering_context
.
По умолчанию: null

Код Context_Aware_Preprocessor::preprocess_with_context() WC 11.2.2

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