module.php in Image Optimizer – Compress Images and Convert to WebP or AVIF 1.0.0, at modules/stats/module.php
| 1 | <?php |
| 2 | namespace ImageOptimizer\Modules\Stats; |
| 3 | |
| 4 | use ImageOptimizer\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 routes_list() : array { |
| 16 | return [ |
| 17 | 'Get_Stats', |
| 18 | ]; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Module constructor. |
| 23 | */ |
| 24 | public function __construct() { |
| 25 | $this->register_routes(); |
| 26 | } |
| 27 | } |
| 28 |