Automattic\WooCommerce\Internal\EmailEditor
Package::init
Init the package.
Method of the class: Package{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Package::init();
Package::init() Package::init code WC 10.4.3
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();
}