Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce
/
packages
/
email-editor
/
src
/
Engine
/
Renderer
/
ContentRenderer
:
class-blocks-parser.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * This file is part of the WooCommerce Email Editor package. * * @package Automattic\WooCommerce\EmailEditor */ declare(strict_types = 1); namespace Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer; use WP_Block_Parser; /** * Class Blocks_Parser */ class Blocks_Parser extends WP_Block_Parser { /** * List of parsed blocks * * @var \WP_Block_Parser_Block[] */ public $output; /** * Parse the blocks from the document * * @param string $document Document to parse. * @return array[] */ public function parse( $document ) { parent::parse( $document ); return apply_filters( 'woocommerce_email_blocks_renderer_parsed_blocks', $this->output ); } }