forked from elementor/wp2static-addon-netlify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp2static-addon-netlify.php
42 lines (33 loc) · 1.02 KB
/
wp2static-addon-netlify.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: Netlify Deployment
* Plugin URI: https://wp2static.com
* Description: Netlify deployment add-on for WP2Static.
* Version: 1.0.1
* Author: Leon Stafford
* Author URI: https://ljs.dev
* License: Unlicense
* License URI: http://unlicense.org
* Text Domain: wp2static-addon-netlify
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'WP2STATIC_NETLIFY_PATH', plugin_dir_path( __FILE__ ) );
define( 'WP2STATIC_NETLIFY_VERSION', '1.0.1' );
if ( file_exists( WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php' ) ) {
require WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php';
}
function run_wp2static_addon_netlify() : void {
$controller = new WP2StaticNetlify\Controller();
$controller->run();
}
register_activation_hook(
__FILE__,
[ 'WP2StaticNetlify\Controller', 'activate' ]
);
register_deactivation_hook(
__FILE__,
[ 'WP2StaticNetlify\Controller', 'deactivate' ]
);
run_wp2static_addon_netlify();