-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paths3-image-optimizer.php
More file actions
44 lines (39 loc) · 1.08 KB
/
Copy paths3-image-optimizer.php
File metadata and controls
44 lines (39 loc) · 1.08 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
44
<?php
/**
* S3 Image Optimizer plugin.
*
* @link https://ewww.io
* @package S3_Image_Optimizer
*/
/*
Plugin Name: S3 Image Optimizer
Plugin URI: https://wordpress.org/plugins/s3-image-optimizer/
Description: Reduce file sizes for images in S3 buckets using lossless and lossy optimization methods via the EWWW Image Optimizer.
Author: Exactly WWW
Version: 3.0.1
Requires at least: 6.7
Requires PHP: 8.1
Requires Plugins: ewww-image-optimizer
Author URI: https://ewww.io/
License: GPLv3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( '\S3IO\Plugin' ) ) {
define( 'S3IO_VERSION', 301 );
define( 'S3IO_PLUGIN_FILE', __FILE__ );
define( 'S3IO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once S3IO_PLUGIN_DIR . 'classes/trait-utils.php';
require_once S3IO_PLUGIN_DIR . 'classes/class-base.php';
require_once S3IO_PLUGIN_DIR . 'classes/class-plugin.php';
/**
* The main function that returns an object of class \S3IO\Plugin.
*
* @return object|S3IO\Plugin The one true S3IO\Plugin instance.
*/
function s3io() {
return S3IO\Plugin::instance();
}
s3io();
}