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

Preprocessor{}interfaceWC 1.0

Interface Preprocessor

Хуков нет.

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

$Preprocessor = new Preprocessor();
// use class methods

Методы

  1. public preprocess( array $parsed_blocks, array $layout, array $styles )

Код Preprocessor{} WC 10.0.2

interface Preprocessor {
	/**
	 * Method to preprocess the content before rendering
	 *
	 * @param array                                                                                                             $parsed_blocks Parsed blocks of the email.
	 * @param array{contentSize: string, wideSize?: string, allowEditing?: bool, allowCustomContentAndWideSize?: bool}          $layout Layout of the email.
	 * @param array{spacing: array{padding: array{bottom: string, left: string, right: string, top: string}, blockGap: string}} $styles Styles of the email.
	 * @return array
	 */
	public function preprocess( array $parsed_blocks, array $layout, array $styles ): array;
}