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

Quote_Preprocessor::preprocess │ public │ WC 1.0

Method to preprocess the content before rendering

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

Хуков нет.

Возвращает

array.

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

$Quote_Preprocessor = new Quote_Preprocessor();
$Quote_Preprocessor->preprocess( $parsed_blocks, $layout, $styles ): array;
$parsed_blocks(массив) (обязательный)
Parsed blocks of the email.
$layout(array{contentSize: string}) (обязательный)
Layout of the email.
$styles(массив) (обязательный)
.

Код Quote_Preprocessor::preprocess() WC 11.2.2

public function preprocess( array $parsed_blocks, array $layout, array $styles ): array {
	return $this->process_blocks( $parsed_blocks, $styles );
}