-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathemail-editor-demo.php
38 lines (30 loc) · 1002 Bytes
/
email-editor-demo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types = 1);
namespace EmailEditorDemo;
/**
* Plugin Name: Mailpoet Email Editor Demo
* Description: An example Demo of how to use the MailPoet Email Editor.
* Requires at least: 6.6
* Requires PHP: 7.2
* Version: 0.1.0
* Author: MailPoet
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: email-editor-demo
*
* @package CreateBlock
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
define( 'EMAIL_EDITOR_DEMO_PATH', dirname( __FILE__ ) );
define( 'EMAIL_EDITOR_DEMO_URL', plugins_url( '', __FILE__ ) );
// When using dev build e.g wp-scripts start
define( 'EMAIL_EDITOR_DEMO_USE_DEV_BUILD', false );
// Autoloader
require_once __DIR__ . '/packages/php/email-editor/vendor/autoload.php';
// Base
require_once __DIR__ . '/core/base.php';
// Initializer
$initializer = Base::getService( Initializer::class );
$initializer->init();