forked from adamsilverstein/modern-images-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodern-images-wp.php
39 lines (33 loc) · 1.15 KB
/
modern-images-wp.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
<?php
/**
* Modern Images WP.
*
* Enables activating alternate image formats as the default for image sub-sizes
* created when uploading images and used for front end display.
*
* @wordpress-plugin
* Plugin Name: Modern Images WP
* Plugin URI: https://plugins.wordpress.org/modern-images-wp
* Description: Choose a default format for subsized images. Choose WebP, JPGXL or AVIF when your server image library supports them.
* Version: 1.0.3
* Requires at least: 5.8
* Requires PHP: 5.6
* Author: adamsilverstein
* Author URI: https://github.com/adamsilverstein
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
* Text Domain: modern-images-wp
*/
/* This file must be parseable by PHP 5.2. */
/**
* Loads the plugin.
*
* @since 1.0.0
*/
function modern_images_wp_load() {
$src_dir = plugin_dir_path( __FILE__ ) . 'src/';
require_once $src_dir . 'Plugin.php';
require_once $src_dir . 'Setting.php';
call_user_func( array( 'Modern_Images_WP\Plugin', 'load' ), __FILE__ );
}
add_action( 'plugins_loaded', 'modern_images_wp_load' );