PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.5.1
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.5.1
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 / connect-manager / components / connect-interface.php

connect-interface.php in Image Optimizer – Compress Images and Convert to WebP or AVIF 1.5.1, at modules/connect-manager/components/connect-interface.php

50 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ImageOptimization\Modules\ConnectManager\Components;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // exit if accessed directly
6 }
7
8 interface Connect_Interface {
9
10 // Connect.
11 public function is_connected(): bool;
12
13 public function is_activated() : bool;
14
15 public function get_connect_status();
16
17 public function get_connect_data( bool $force = false ): array;
18
19 public function update_usage_data( $new_usage_data ): void;
20
21 public function get_activation_state() : string;
22
23 public function get_access_token();
24
25 public function get_client_id(): string;
26
27 public function images_left(): int;
28
29 public function user_is_subscription_owner(): bool;
30
31 // Nonces.
32
33 public function connect_init_nonce(): string;
34
35 public function disconnect_nonce(): string;
36
37 public function deactivate_nonce(): string;
38
39 public function get_subscriptions_nonce(): string;
40
41 public function activate_nonce(): string;
42
43 public function version_nonce(): string;
44
45 public function get_is_connect_on_fly(): bool;
46
47 public function refresh_token(): void;
48
49 }
50