← All changes
|
freemius/includes/entities/class-fs-plugin-license.php
+11
-0
1.2.3
→
5.0.1
View file →
| @@ -50,8 +50,15 @@ | ||
| 50 | 50 | * @var number |
| 51 | 51 | */ |
| 52 | 52 | public $parent_license_id; |
| 53 | 53 | /** |
| 54 | + * @author Leo Fajardo (@leorw) | |
| 55 | + * @since 2.4.0 | |
| 56 | + * | |
| 57 | + * @var array | |
| 58 | + */ | |
| 59 | + public $products; | |
| 60 | + /** | |
| 54 | 61 | * @var number |
| 55 | 62 | */ |
| 56 | 63 | public $pricing_id; |
| 57 | 64 | /** |
| @@ -281,8 +288,12 @@ | ||
| 281 | 288 | * |
| 282 | 289 | * @return bool |
| 283 | 290 | */ |
| 284 | 291 | function is_first_payment_pending() { |
| 292 | + if ( $this->is_lifetime() ) { | |
| 293 | + return false; | |
| 294 | + } | |
| 295 | + | |
| 285 | 296 | return ( WP_FS__TIME_24_HOURS_IN_SEC >= strtotime( $this->expiration ) - strtotime( $this->created ) ); |
| 286 | 297 | } |
| 287 | 298 | |
| 288 | 299 | /** |