| @@ -4,21 +4,12 @@ | ||
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | class FrmFormTemplateApi extends FrmFormApi { |
| 7 | 7 | |
| 8 | - /** | |
| 9 | - * @var string | |
| 10 | - */ | |
| 11 | 8 | protected static $code_option_name = 'frm_free_license_code'; |
| 12 | 9 | |
| 13 | - /** | |
| 14 | - * @var string | |
| 15 | - */ | |
| 16 | 10 | private static $base_api_url = 'https://formidableforms.com/wp-json/form-templates/v1/'; |
| 17 | 11 | |
| 18 | - /** | |
| 19 | - * @var string|null | |
| 20 | - */ | |
| 21 | 12 | protected static $free_license; |
| 22 | 13 | |
| 23 | 14 | /** |
| 24 | 15 | * @var int |
| @@ -66,32 +57,8 @@ | ||
| 66 | 57 | * @return string[] |
| 67 | 58 | */ |
| 68 | 59 | protected function skip_categories() { |
| 69 | 60 | return array(); |
| 70 | - } | |
| 71 | - | |
| 72 | - /** | |
| 73 | - * Set the free license code option value. | |
| 74 | - * | |
| 75 | - * @since 6.25 | |
| 76 | - * | |
| 77 | - * @param string $code The license code to set. | |
| 78 | - * | |
| 79 | - * @return void | |
| 80 | - */ | |
| 81 | - public static function set_free_license_code( $code ) { | |
| 82 | - update_option( self::$code_option_name, $code, false ); | |
| 83 | - } | |
| 84 | - | |
| 85 | - /** | |
| 86 | - * Get the free license code option value. | |
| 87 | - * | |
| 88 | - * @since 6.25 | |
| 89 | - * | |
| 90 | - * @return false|string The license code, or false if not set. | |
| 91 | - */ | |
| 92 | - public static function get_free_license_code() { | |
| 93 | - return get_option( self::$code_option_name ); | |
| 94 | 61 | } |
| 95 | 62 | |
| 96 | 63 | /** |
| 97 | 64 | * AJAX Hook for signing free users up for a template API key |