| @@ -84,8 +84,9 @@ | ||
| 84 | 84 | ], |
| 85 | 85 | 'user-agent' => site_url(), |
| 86 | 86 | ]; |
| 87 | 87 | |
| 88 | + // For addon must buy. | |
| 88 | 89 | if ( 0 == $addon['is_free'] ) { |
| 89 | 90 | $key_purchase = LP_Settings::get_option( $this->key_purchase_addons, [] ); |
| 90 | 91 | $key_purchase[ $addon['slug'] ] = $purchase_code; |
| 91 | 92 | LP_Settings::update_option( $this->key_purchase_addons, $key_purchase ); |