-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgutenberg-collaborative-editing.php
More file actions
44 lines (40 loc) · 1.48 KB
/
Copy pathgutenberg-collaborative-editing.php
File metadata and controls
44 lines (40 loc) · 1.48 KB
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
39
40
41
42
43
44
<?php
/**
* Plugin Name: Gutenberg Collaborative Editing
* Description: A plugin to enhance Gutenberg with collaborative editing features.
* Requires at least: 6.0
* Requires PHP: 7.4
* Version: 0.1.0
* Author: DotOrg
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: gutenberg-collaborative-editing
*
* @package gce
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
require_once __DIR__ . '/src/Plugin.php';
require_once __DIR__ . '/src/Persistence/AwarenessStateRepository.php';
require_once __DIR__ . '/src/Persistence/ContentRepository.php';
require_once __DIR__ . '/src/Persistence/SnapshotIdRepository.php';
require_once __DIR__ . '/src/Ajax/AwarenessSyncHandler.php';
require_once __DIR__ . '/src/Ajax/ContentSyncHandler.php';
require_once __DIR__ . '/src/Ajax/PollingHandler.php';
require_once __DIR__ . '/src/Ajax/AjaxRegistry.php';
require_once __DIR__ . '/src/EditorAssets.php';
require_once __DIR__ . '/src/Cron.php';
require_once __DIR__ . '/src/Utils.php';
require_once __DIR__ . '/src/HeartbeatListener.php';
require_once __DIR__ . '/src/Admin/Settings.php';
// Initialize the plugin.
add_action( 'init', function() {
new \DotOrg\GCE\Plugin();
} );
register_activation_hook( __FILE__, function() {
\DotOrg\GCE\Cron::schedule_events();
} );
register_deactivation_hook( __FILE__, function() {
\DotOrg\GCE\Cron::unschedule_events();
} );