Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors
Preprocessor::preprocess
Method to preprocess the content before rendering
Метод класса: Preprocessor{}
Хуков нет.
Возвращает
array.
Использование
$Preprocessor = new Preprocessor(); $Preprocessor->preprocess( $parsed_blocks, $layout, $styles ): array;
- $parsed_blocks(массив) (обязательный)
- Parsed blocks of the email.
- $layout(array{contentSize: string, wideSize?: string, allowEditing?: bool, allowCustomContentAndWideSize?: bool}) (обязательный)
- Layout of the email.
- $styles(массив) (обязательный)
- .
Код Preprocessor::preprocess() Preprocessor::preprocess WC 11.1.1
public function preprocess( array $parsed_blocks, array $layout, array $styles ): array;