PluginProbe ʕ •ᴥ•ʔ
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF / 2.0.6
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF v2.0.6
2.0.7 2.0.6 2.0.5 trunk 1.3.7 1.4.0 1.4.1 1.4.2 1.4.6 1.5.0 1.5.3 1.5.6 1.5.8 1.6.5 1.6.6 1.6.9 1.7.0 1.7.4 1.8.1 1.8.2 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4
robin-image-optimizer / libs / factory / freemius / includes / entities / class-freemius-plugin.php
robin-image-optimizer / libs / factory / freemius / includes / entities Last commit date
class-freemius-entity.php 7 months ago class-freemius-license.php 7 months ago class-freemius-plugin.php 7 months ago class-freemius-scope.php 7 months ago class-freemius-site.php 7 months ago class-freemius-user.php 7 months ago index.php 7 months ago
class-freemius-plugin.php
111 lines
1 <?php
2
3 namespace WBCR\Factory_Freemius_Rio_600\Entities;
4
5 use stdClass;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit;
9 }
10
11 /**
12 * @version 1.0
13 */
14 class Plugin extends Scope {
15
16 /**
17 * @since 1.0.6
18 * @var null|number
19 */
20 public $parent_plugin_id;
21
22 /**
23 * @var string
24 */
25 public $title;
26 /**
27 * @var string
28 */
29 public $slug;
30
31 /**
32 * @var string
33 */
34 public $premium_slug;
35
36 /**
37 * @var string 'plugin' or 'theme'
38 */
39 public $type;
40
41 /**
42 * @var string|false false if the module doesn't have an affiliate program or one of the following: 'selected',
43 * 'customers', or 'all'.
44 */
45 public $affiliate_moderation;
46
47 /**
48 * @var bool Set to true if the free version of the module is hosted on WordPress.org. Defaults to true.
49 */
50 public $is_wp_org_compliant = true;
51
52 /**
53 * @var string
54 */
55 public $file;
56
57 /**
58 * @var string
59 */
60 public $version;
61
62 /**
63 * @var bool
64 */
65 public $auto_update;
66
67 /**
68 * @var bool
69 */
70 public $is_premium;
71
72 /**
73 * @var string
74 */
75 public $premium_suffix;
76
77 /**
78 * @var bool
79 */
80 public $is_live;
81
82 const AFFILIATE_MODERATION_CUSTOMERS = 'customers';
83
84 // endregion Install Specific Properties
85
86 /**
87 * @param stdClass|bool $plugin
88 */
89 function __construct( $plugin = false ) {
90 parent::__construct( $plugin );
91
92 $this->is_premium = false;
93 $this->is_live = true;
94 }
95
96 /**
97 * Check if plugin is an add-on (has parent).
98 *
99 * @since 1.0.6
100 *
101 * @return bool
102 */
103 function is_addon() {
104 return isset( $this->parent_plugin_id ) && is_numeric( $this->parent_plugin_id );
105 }
106
107 static function get_type() {
108 return 'plugin';
109 }
110 }
111