29 lines
959 B
PHP
29 lines
959 B
PHP
<?php
|
|
/**
|
|
* Plugin Name: H4B Image Optim
|
|
* Plugin URI: https://gitea.help4bis.com/help4bis/h4b-image-optim
|
|
* Description: ICC-safe image optimisation with WebP + AVIF generation. Replaces Smush Pro without the grey-wash bug. No CDN.
|
|
* Version: 0.2.3
|
|
* Author: help4bis
|
|
* Author URI: https://help4bis.com
|
|
* License: GPL-2.0-or-later
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
|
* Requires PHP: 8.1
|
|
* Requires at least: 6.4
|
|
* Text Domain: h4b-image-optim
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
define( 'H4B_IMG_OPTIM_VERSION', '0.2.3' );
|
|
define( 'H4B_IMG_OPTIM_FILE', __FILE__ );
|
|
define( 'H4B_IMG_OPTIM_DIR', plugin_dir_path( __FILE__ ) );
|
|
define( 'H4B_IMG_OPTIM_URL', plugin_dir_url( __FILE__ ) );
|
|
define( 'H4B_IMG_OPTIM_SLUG', 'h4b-image-optim' );
|
|
|
|
require_once H4B_IMG_OPTIM_DIR . 'includes/class-plugin.php';
|
|
|
|
H4B\ImageOptim\Plugin::instance()->boot();
|