PluginProbe
PixelCraft with WebP / trunk
PixelCraft with WebP vtrunk
2.1.3 trunk 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2
pixelcraft-webp / pixelcraft-webp.php

pixelcraft-webp.php in PixelCraft with WebP trunk, at pixelcraft-webp.php

49 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: PixelCraft with WebP
4 * Plugin URI: https://adbear.cloud
5 * Description: Converts uploaded JPEG and PNG images to WebP, optimizes sizes, and serves WebP with graceful fallback for older clients.
6 * Version: 2.1.3
7 * Requires at least: 6.0
8 * Requires PHP: 7.4
9 * Tested up to: 7.0
10 * Author: secilkars
11 * Author URI: https://profiles.wordpress.org/secilkars/
12 * License: GPLv2 or later
13 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
14 * Text Domain: pixelcraft-webp
15 * Domain Path: /languages
16 */
17
18 // WordPress-only notice: This plugin is not affiliated with or endorsed by the WordPress Foundation.
19
20 if ( ! defined( 'ABSPATH' ) ) {
21 exit;
22 }
23
24 define( 'PCLWEBP_VERSION', '2.1.3' );
25 define( 'PCLWEBP_FILE', __FILE__ );
26 define( 'PCLWEBP_PATH', plugin_dir_path( __FILE__ ) );
27 define( 'PCLWEBP_URL', plugin_dir_url( __FILE__ ) );
28 define( 'PCLWEBP_BASENAME', plugin_basename( __FILE__ ) );
29 /** Writable files under wp_upload_dir()['basedir']/pixelcraft-webp/ only (Plugin Review). */
30 define( 'PCLWEBP_UPLOAD_SUBDIR', 'pixelcraft-webp' );
31
32 require_once PCLWEBP_PATH . 'includes/class-pclwebp-autoload.php';
33
34 Pclwebp_Autoload::register();
35
36 /**
37 * Returns the main plugin instance.
38 *
39 * @return Pclwebp_Plugin
40 */
41 function pclwebp() {
42 return Pclwebp_Plugin::instance();
43 }
44
45 register_activation_hook( PCLWEBP_FILE, array( 'Pclwebp_Activator', 'activate' ) );
46 register_deactivation_hook( PCLWEBP_FILE, array( 'Pclwebp_Deactivator', 'deactivate' ) );
47
48 pclwebp();
49