Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors
Spacing_Preprocessor::get_post_content_block_names
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{}
Hooks from the method
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() 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;
}