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

Spacing_Preprocessor::get_post_content_block_namesprivateWC 1.0

Returns the list of block names treated as "post content" for padding delegation.

Filterable so that integrations can register custom post-content-like blocks without modifying this file.

Method of the class: Spacing_Preprocessor{}

Returns

String[].

Usage

// private - for code of main (parent) class only
$result = $this->get_post_content_block_names(): array;

Spacing_Preprocessor::get_post_content_block_names() code WC 10.7.0

private function get_post_content_block_names(): array {
	if ( null === $this->post_content_block_names ) {
		$this->post_content_block_names = (array) apply_filters(
			'woocommerce_email_editor_post_content_block_names',
			array( 'core/post-content' )
		);
	}
	return $this->post_content_block_names;
}