PluginProbe
Tiered Pricing Table for WooCommerce / 2.1.2
Tiered Pricing Table for WooCommerce v2.1.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
← All changes | freemius/includes/class-freemius-abstract.php +63 -4 8.0.2 → 2.1.2 View file →
@@ -36,14 +36,11 @@
36 36 * user is currently opted-in, use:
37 37 * `$fs->is_registered() && $fs->is_tracking_allowed()`
38 38 *
39 39 * @since 1.0.1
40 - *
41 - * @param bool $ignore_anonymous_state Since 2.5.1
42 - *
43 40 * @return bool
44 41 */
45 - abstract function is_registered( $ignore_anonymous_state = false );
42 + abstract function is_registered();
46 43
47 44 /**
48 45 * Check if the user skipped connecting the account with Freemius.
49 46 *
@@ -60,8 +57,70 @@
60 57 *
61 58 * @return bool
62 59 */
63 60 abstract function is_activation_mode();
61 +
62 + #endregion
63 +
64 + #----------------------------------------------------------------------------------
65 + #region Usage Tracking
66 + #----------------------------------------------------------------------------------
67 +
68 + /**
69 + * Returns TRUE if the user opted-in and didn't disconnect (opt-out).
70 + *
71 + * @author Leo Fajardo (@leorw)
72 + * @since 1.2.1.5
73 + *
74 + * @return bool
75 + */
76 + abstract function is_tracking_allowed();
77 +
78 + /**
79 + * Returns TRUE if the user never opted-in or manually opted-out.
80 + *
81 + * @author Vova Feldman (@svovaf)
82 + * @since 1.2.1.5
83 + *
84 + * @return bool
85 + */
86 + function is_tracking_prohibited() {
87 + return ! $this->is_registered() || ! $this->is_tracking_allowed();
88 + }
89 +
90 + /**
91 + * Opt-out from usage tracking.
92 + *
93 + * Note: This will not delete the account information but will stop all tracking.
94 + *
95 + * Returns:
96 + * 1. FALSE - If the user never opted-in.
97 + * 2. TRUE - If successfully opted-out.
98 + * 3. object - API Result on failure.
99 + *
100 + * @author Leo Fajardo (@leorw)
101 + * @since 1.2.1.5
102 + *
103 + * @return bool|object
104 + */
105 + abstract function stop_tracking();
106 +
107 + /**
108 + * Opt-in back into usage tracking.
109 + *
110 + * Note: This will only work if the user opted-in previously.
111 + *
112 + * Returns:
113 + * 1. FALSE - If the user never opted-in.
114 + * 2. TRUE - If successfully opted-in back to usage tracking.
115 + * 3. object - API result on failure.
116 + *
117 + * @author Leo Fajardo (@leorw)
118 + * @since 1.2.1.5
119 + *
120 + * @return bool|object
121 + */
122 + abstract function allow_tracking();
64 123
65 124 #endregion
66 125
67 126 #----------------------------------------------------------------------------------