$field ) { $type = (string) ( $field['type'] ?? '' ); $key = (string) ( $field['metakey'] ?? $key ); if ( in_array( $type, self::SKIP, true ) || false !== stripos( $key, 'password' ) || 0 === strpos( $key, 'confirm_' ) || ! isset( $submitted[ $key ] ) ) { continue; } $fields[] = array( 'label' => (string) ( $field['label'] ?? ( $field['title'] ?? $key ) ), 'name' => $key, 'type' => 'user_email' === $key ? 'email' : $type, 'value' => $submitted[ $key ], ); } Capture::submission( self::key(), (string) absint( $form_data['form_id'] ), (string) get_the_title( absint( $form_data['form_id'] ) ), $fields ); } }