-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathwp2static-addon-gcs.php
More file actions
42 lines (33 loc) · 1000 Bytes
/
wp2static-addon-gcs.php
File metadata and controls
42 lines (33 loc) · 1000 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
<?php
/**
* Plugin Name: WP2Static Add-on: GCS Deployment
* Plugin URI: https://wp2static.com
* Description: GCP GCS deployment add-on for WP2Static.
* Version: 1.0.0-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_GCS_PATH', plugin_dir_path( __FILE__ ) );
define( 'WP2STATIC_GCS_VERSION', '1.0.0-dev' );
if ( file_exists( WP2STATIC_GCS_PATH . 'vendor/autoload.php' ) ) {
require_once WP2STATIC_GCS_PATH . 'vendor/autoload.php';
}
function run_wp2static_addon_gcs() : void {
$controller = new WP2StaticGCS\Controller();
$controller->run();
}
register_activation_hook(
__FILE__,
[ 'WP2StaticGCS\Controller', 'activate' ]
);
register_deactivation_hook(
__FILE__,
[ 'WP2StaticGCS\Controller', 'deactivate' ]
);
run_wp2static_addon_gcs();