REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.66 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/woocommerce/src/Internal/EmailEditor/Package.php
Text
Base64
<?php declare( strict_types=1 ); namespace Automattic\WooCommerce\Internal\EmailEditor; defined( 'ABSPATH' ) || exit; /** * This class is used to initialize the email editor package. * * It is a wrapper around the MailPoet\EmailEditor\Package class and * ensures that the email editor package is only initialized if the block editor feature flag is enabled. */ class Package { /** * Version. * * @var string */ const VERSION = \MailPoet\EmailEditor\Package::VERSION; /** * Package active. * * @var bool */ private static $package_active = false; /** * Init the package. * * @internal */ final public static function init() { self::$package_active = get_option( 'woocommerce_feature_block_email_editor_enabled', 'no' ) === 'yes'; // init is called pretty early. Cant use FeaturesUtil. // we only want to initialize the package if the block editor feature flag is enabled. if ( ! self::$package_active ) { return; } self::initialize(); \MailPoet\EmailEditor\Package::init(); // The namespace will be changed to Automattic\WooCommerce\EmailEditor\Package in the future. } /** * Return the version of the package. * * @return string */ public static function get_version() { return \MailPoet\EmailEditor\Package::get_version(); } /** * Return the path to the package. * * @return string */ public static function get_path() { return \MailPoet\EmailEditor\Package::get_path(); } /** * Initialize the email editor integration by fetching the class from the container. * * @return void */ public static function initialize() { $container = wc_get_container(); $container->get( Integration::class ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
EmailPatterns
DIR
-
drwxr-xr-x
2026-03-03 06:25:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
EmailTemplates
DIR
-
drwxr-xr-x
2026-03-03 06:25:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Integration.php
4.73 KB
lrw-r--r--
2026-03-03 06:25:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Package.php
1.66 KB
lrw-r--r--
2026-03-03 06:25:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PageRenderer.php
5.85 KB
lrw-r--r--
2026-03-03 06:25:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PersonalizationTagManager.php
1.73 KB
lrw-r--r--
2026-03-03 06:25:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).