PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
image-optimization / modules / stats / module.php

module.php in Image Optimizer – Compress Images and Convert to WebP or AVIF 1.7.7, at modules/stats/module.php

35 lines 609 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ImageOptimization\Modules\Stats;
3
4 use ImageOptimization\Classes\Module_Base;
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit; // Exit if accessed directly.
8 }
9
10 class Module extends Module_Base {
11 public function get_name(): string {
12 return 'stats';
13 }
14
15 public static function component_list(): array {
16 return [
17 'Optimization_Stats_Handler',
18 ];
19 }
20 public static function routes_list(): array {
21 return [
22 'Get_Stats',
23 'Get_Optimization_Details',
24 ];
25 }
26
27 /**
28 * Module constructor.
29 */
30 public function __construct() {
31 $this->register_routes();
32 $this->register_components();
33 }
34 }
35