| @@ -138,12 +138,12 @@ | ||
| 138 | 138 | $field['enable_no_captcha'] = isset( $field['enable_no_captcha'] ) ? $field['enable_no_captcha'] : ''; |
| 139 | 139 | $field['recaptcha_theme'] = isset( $field['recaptcha_theme'] ) ? $field['recaptcha_theme'] : 'light'; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | - $form_fields[] = apply_filters( 'weforms-get-form-field', $field, $this->id ); | |
| 142 | + $form_fields[] = apply_filters( 'weforms-get-form-field', $field ); | |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - $this->form_fields = apply_filters( 'weforms-get-form-fields', $form_fields, $this->id ); | |
| 145 | + $this->form_fields = apply_filters( 'weforms-get-form-fields', $form_fields ); | |
| 146 | 146 | |
| 147 | 147 | return $this->form_fields; |
| 148 | 148 | } |
| 149 | 149 | |
| @@ -270,9 +270,9 @@ | ||
| 270 | 270 | public function get_settings() { |
| 271 | 271 | $settings = get_post_meta( $this->id, 'wpuf_form_settings', true ); |
| 272 | 272 | $default = weforms_get_default_form_settings(); |
| 273 | 273 | |
| 274 | - return apply_filters( 'weforms-get-form-settings', array_merge( $default, $settings ), $this->id ); | |
| 274 | + return array_merge( $default, $settings ); | |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | /** |
| 278 | 278 | * Check if the form submission is open |