@@ 179-194 (lines=16) @@ | ||
176 | * @param string $reg_url_link |
|
177 | * @return bool |
|
178 | */ |
|
179 | private function isValidRegUrlLink(string $reg_url_link): bool |
|
180 | { |
|
181 | if (! empty($reg_url_link)) { |
|
182 | return true; |
|
183 | } |
|
184 | EE_Error::add_error( |
|
185 | esc_html__( |
|
186 | 'An invalid or missing line item ID was encountered while attempting to process the registration form.', |
|
187 | 'event_espresso' |
|
188 | ), |
|
189 | __FILE__, |
|
190 | __FUNCTION__, |
|
191 | __LINE__ |
|
192 | ); |
|
193 | return false; |
|
194 | } |
|
195 | ||
196 | ||
197 | /** |
|
@@ 201-217 (lines=17) @@ | ||
198 | * @param EE_Registration $registration |
|
199 | * @return bool |
|
200 | */ |
|
201 | private function isValidRegistration(EE_Registration $registration): bool |
|
202 | { |
|
203 | // verify EE_Registration object |
|
204 | if ($registration instanceof EE_Registration) { |
|
205 | return true; |
|
206 | } |
|
207 | EE_Error::add_error( |
|
208 | esc_html__( |
|
209 | 'An invalid Registration object was discovered when attempting to process your registration information.', |
|
210 | 'event_espresso' |
|
211 | ), |
|
212 | __FILE__, |
|
213 | __FUNCTION__, |
|
214 | __LINE__ |
|
215 | ); |
|
216 | return false; |
|
217 | } |
|
218 | ||
219 | ||
220 | /** |