forked from elementor/wp2static-addon-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp2static-addon-s3.php
42 lines (33 loc) · 989 Bytes
/
wp2static-addon-s3.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
39
40
41
<?php
/**
* Plugin Name: WP2Static Add-on: S3 Deployment
* Plugin URI: https://wp2static.com
* Description: AWS S3 deployment add-on for WP2Static.
* Version: 1.0.1-dev
* Requires PHP: 7.3
* Author: Leon Stafford
* Author URI: https://ljs.dev
* License: Unlicense
* License URI: http://unlicense.org
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'WP2STATIC_S3_PATH', plugin_dir_path( __FILE__ ) );
define( 'WP2STATIC_S3_VERSION', '1.0.1-dev' );
if ( file_exists( WP2STATIC_S3_PATH . 'vendor/autoload.php' ) ) {
require_once WP2STATIC_S3_PATH . 'vendor/autoload.php';
}
function run_wp2static_addon_s3() : void {
$controller = new WP2StaticS3\Controller();
$controller->run();
}
register_activation_hook(
__FILE__,
[ 'WP2StaticS3\Controller', 'activate' ]
);
register_deactivation_hook(
__FILE__,
[ 'WP2StaticS3\Controller', 'deactivate' ]
);
run_wp2static_addon_s3();