File "class-blocks-parser.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/woocommerce/packages/email-editor/src/Engine/Renderer/ContentRenderer/class-blocks-parser.php
File size: 709 bytes
MIME-type: text/x-php
Charset: utf-8
<?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 );
}
}