| @@ -4,12 +4,21 @@ | ||
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | class FrmFormTemplateApi extends FrmFormApi { |
| 7 | 7 | |
| 8 | + /** | |
| 9 | + * @var string | |
| 10 | + */ | |
| 8 | 11 | protected static $code_option_name = 'frm_free_license_code'; |
| 9 | 12 | |
| 13 | + /** | |
| 14 | + * @var string | |
| 15 | + */ | |
| 10 | 16 | private static $base_api_url = 'https://formidableforms.com/wp-json/form-templates/v1/'; |
| 11 | 17 | |
| 18 | + /** | |
| 19 | + * @var string|null | |
| 20 | + */ | |
| 12 | 21 | protected static $free_license; |
| 13 | 22 | |
| 14 | 23 | /** |
| 15 | 24 | * @var int |
| @@ -65,11 +74,13 @@ | ||
| 65 | 74 | * |
| 66 | 75 | * @since 6.25 |
| 67 | 76 | * |
| 68 | 77 | * @param string $code The license code to set. |
| 78 | + * | |
| 79 | + * @return void | |
| 69 | 80 | */ |
| 70 | 81 | public static function set_free_license_code( $code ) { |
| 71 | - update_option( self::$code_option_name, $code, 'no' ); | |
| 82 | + update_option( self::$code_option_name, $code, false ); | |
| 72 | 83 | } |
| 73 | 84 | |
| 74 | 85 | /** |
| 75 | 86 | * Get the free license code option value. |