PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.1.0
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.1.0
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 / oauth / module.php

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

48 lines 780 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ImageOptimization\Modules\Oauth;
4
5 use ImageOptimization\Classes\Module_Base;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 /**
12 * Class Module
13 */
14 class Module extends Module_Base {
15 /**
16 * Get module name.
17 * Retrieve the module name.
18 * @access public
19 * @return string Module name.
20 */
21 public function get_name(): string {
22 return 'oauth';
23 }
24
25 public static function routes_list() : array {
26 return [
27 'Connect_Init',
28 'Disconnect',
29 'Get_Subscriptions',
30 'Activate',
31 'Deactivate',
32 ];
33 }
34
35 public static function component_list() : array {
36 return [
37 'Connect',
38 'Checkpoint',
39 'Connect_Pointer',
40 ];
41 }
42
43 public function __construct() {
44 $this->register_components();
45 $this->register_routes();
46 }
47 }
48