PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmFormTemplateApi.php +0 -24 6.35.1 View file →
@@ -11,16 +11,9 @@
11 11
12 12 protected static $free_license;
13 13
14 14 /**
15 - * @var int $new_days
16 - */
17 - protected $new_days = 30;
18 -
19 - /**
20 15 * @since 3.06
21 - *
22 - * @return void
23 16 */
24 17 protected function set_cache_key() {
25 18 $this->cache_key = 'frm_form_templates_l';
26 19
@@ -35,10 +28,8 @@
35 28 }
36 29
37 30 /**
38 31 * @since 3.06
39 - *
40 - * @return string
41 32 */
42 33 protected function api_url() {
43 34 $url = self::$base_api_url . 'list';
44 35
@@ -55,10 +46,8 @@
55 46 }
56 47
57 48 /**
58 49 * @since 3.06
59 - *
60 - * @return array
61 50 */
62 51 protected function skip_categories() {
63 52 return array();
64 53 }
@@ -77,10 +66,8 @@
77 66 /**
78 67 * Check to make sure the free code is being used.
79 68 *
80 69 * @since 4.09.02
81 - *
82 - * @return bool
83 70 */
84 71 public function has_free_access() {
85 72 $free_access = $this->get_free_license();
86 73 if ( ! $free_access ) {
@@ -93,10 +80,8 @@
93 80 }
94 81
95 82 /**
96 83 * @param string $code the code from the email sent for the API
97 - *
98 - * @return void
99 84 */
100 85 private static function verify_code( $code ) {
101 86 $base64_code = base64_encode( $code );
102 87 $api_url = self::$base_api_url . 'code?l=' . urlencode( $base64_code );
@@ -113,11 +98,8 @@
113 98 wp_send_json_error( new WP_Error( $decoded->code, $decoded->message ) );
114 99 }
115 100 }
116 101
117 - /**
118 - * @return void
119 - */
120 102 private static function clear_template_cache_before_getting_free_templates() {
121 103 delete_option( 'frm_form_templates_l' );
122 104 }
123 105
@@ -122,10 +104,8 @@
122 104 }
123 105
124 106 /**
125 107 * @param array $response
126 - *
127 - * @return void
128 108 */
129 109 private static function handle_verify_response_errors_if_any( $response ) {
130 110 if ( is_wp_error( $response ) ) {
131 111 wp_send_json_error( $response );
@@ -137,10 +117,8 @@
137 117 }
138 118
139 119 /**
140 120 * @param string $code the base64 encoded code
141 - *
142 - * @return void
143 121 */
144 122 private static function on_api_verify_code_success( $code ) {
145 123 self::$free_license = $code;
146 124 update_option( self::$code_option_name, $code, 'no' );
@@ -179,10 +157,8 @@
179 157 }
180 158
181 159 /**
182 160 * AJAX Hook for signing free users up for a template API key
183 - *
184 - * @return void
185 161 */
186 162 public static function signup() {
187 163 $code = FrmAppHelper::get_param( 'code', '', 'post' );
188 164