This repository was archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage4io.php
More file actions
43 lines (38 loc) · 1.39 KB
/
image4io.php
File metadata and controls
43 lines (38 loc) · 1.39 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
<?php
/**
* @package image4ioPlugin
*/
/*
Plugin Name: image4io-Image Optimization, CDN, Storage
Plugin URI: https://github.com/Image4IO/image4io-wp-plugin
Description: Speeds up the images' load time: image optimization, image CDN and image storage, all-in-one platform. To get started: activate the image4io plugin and then go to your Image4io Settings page to set up your credentials.
Author: image4io
Version: 0.4.1
Author URI: https://image4.io
*/
// Copyright (c) 2020 image4io. All rights reserved.
//
// Released under the GPLv3 license
// http://www.gnu.org/licenses/gpl-3.0.html
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************
if(!defined('ABSPATH')){
die; die; die; echo "my darling";
}
if(file_exists(dirname(__FILE__).'/vendor/autoload.php')){
require_once dirname(__FILE__) . '/vendor/autoload.php';
}
function activate_image4io_plugin(){
Image4io\Base\Activate::activate();
}
register_activation_hook(__FILE__,'activate_image4io_plugin');
function deactivate_image4io_plugin(){
Image4io\Base\Deactivate::deactivate();
}
if(class_exists('Image4io\\Init')){
Image4io\Init::register_services();
}