-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwordsocket.php
More file actions
54 lines (46 loc) · 1.72 KB
/
wordsocket.php
File metadata and controls
54 lines (46 loc) · 1.72 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
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Plugin Name: WordSocket
* Plugin URI: https://wpsignal.io/wordsocket
* Description: WordSocket is the official WordPress plugin for <a href="https://wpsignal.io">wpsignal.io</a>.
* Version: 0.16.0
* Author: WPSignal
* Author URI: https://wpsignal.io
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wordsocket
* Domain Path: /languages
* Requires at least: 6.2
* Tested up to: 7.0
* Requires PHP: 7.4
*
* @package WordSocket
*
* This is the main bootstrap file for the WordSocket plugin. It defines global
* constants, loads the class autoloader and backward-compatibility wrappers,
* then boots the plugin via the WPSignal singleton facade.
*
* Boot sequence:
* 1. Define constants (WPSignal\VERSION, WPSignal\DIR, WPSignal\URL)
* 2. Load autoloader (includes/autoload.php)
* 3. Load backward-compat function wrappers (publish.php, rest.php, admin.php)
* 4. WPS::instance()->boot(): instantiates and wires all components
*
* @see WPS::boot() for the full initialization sequence.
*/
namespace WPSignal;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/** @var string Current plugin version. */
const VERSION = '0.16.0';
/** @var string Absolute path to the plugin directory (with trailing slash). */
const DIR = __DIR__ . '/';
/** @var string Encryption key version. */
const ENCRYPTION_KEY_VERSION = 'wpsignal-v1';
/** @var string URL to the plugin directory (with trailing slash). */
define( 'WPSignal\URL', plugin_dir_url( __FILE__ ) );
// Autoloader for WPSignal\ namespace classes.
require_once DIR . 'includes/autoload.php';
// Boot the plugin.
WPS::instance()->boot();