-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasmp-wordpress-integration.php
More file actions
44 lines (35 loc) · 973 Bytes
/
asmp-wordpress-integration.php
File metadata and controls
44 lines (35 loc) · 973 Bytes
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
/**
* ASMP WordPress Integration Plugin.
*
* @package ASMP\WordPressIntegration
* @license MIT
* @link https://www.asmprotocol.org/
*
* @wordpress-plugin
* Plugin Name: ASMP WordPress Integration Plugin
* Plugin URI: https://www.asmprotocol.org/
* Description: WordPress Integration Plugin for ASMP.
* Version: 0.1.0
* Requires PHP: 7.2
* Text Domain: asmp
* Domain Path: /languages
* License: MIT
* License URI: https://opensource.org/licenses/MIT
*/
namespace ASMP\WordPressIntegration;
if ( ! defined( 'ABSPATH' ) ) {
die();
}
$composer_autoloader = __DIR__ . '/vendor/autoload.php';
if ( is_readable ( $composer_autoloader ) ) {
require $composer_autoloader;
}
$plugin = PluginFactory::create();
\register_activation_hook( __FILE__, function () use ( $plugin ) {
$plugin->activate();
} );
\register_deactivation_hook( __FILE__, function () use ( $plugin ) {
$plugin->deactivate();
} );
$plugin->register();