# Changelog

## 1.0.17 | July 2, 2025

- Updated the `gpqr_file_name` PHP filter hook to include the `$entry` parameter in its `$meta` array, allowing QR code file names to be customized based on entry data.

## 1.0.16 | June 24, 2025

- Added new `gpqr_file_name` PHP filter hook to allow customizing the file name used when saving QR code files.

## 1.0.15 | May 14, 2025

- Removed redundant check for Gravity Perks in preparation for Spellbook.

## 1.0.14 | April 30, 2025

- Added support for camera zoom during QR code scanning. It can be enabled by using the `gpqr_scanner_config` JavaScript filter hook.

## 1.0.13 | October 23, 2024

- Improved styling of the scanner pop-up if using the Gravity Forms theme framework.

## 1.0.12 | October 1, 2024

- Fixed PHP 8.2 deprecation notices.

## 1.0.11 | August 14, 2024

- Added `$entry` as a parameter to the `gp_qr_code_merge_tag_value` PHP filter hook.

## 1.0.10

- Added [gp_qr_code_merge_tag_value](https://gravitywiz.com/documentation/gp_qr_code_merge_tag_value/) filter to allow customizing the output of QR merge tags.

## 1.0.9

- Fixed issue where some merge tags such as `{entry_id}` would not work as expected with the `:qr` modifier.
- Fixed potential PHP notice.

## 1.0.8

- Fixed an issue where duplicate files could be created if the same QR code is generated.

## 1.0.7

- Updated the scanner library.

## 1.0.6

- Fixed an issue where the QR code scanner would close when switching cameras.

## 1.0.5

- Added new `gpqr_file_content` filter hook which is useful for filtering the contents of an SVG formatted QR code.
- Added the ability to generate QR code as SVGs by utilizing the `gpqr_params_pre_generate` filter hook.

## 1.0.4

- Added new `gpqr_encoding` PHP filter hook to change the encoding used when generating QR codes. This is useful if encoding multi-byte characters in QR codes.

## 1.0.3

- Updated the scanner library.
- Fixed issue where scanning into a Paragraph field did not correctly insert the value into the field.

## 1.0.2

- Added support for displaying scanner button when enabled for Paragraph fields.

## 1.0.1

- Updated the default QR code error correction from low (7%) to medium (15%) to improve reliability of the generated codes when scanned.
- Added the ability to change QR code error correction level using the `gpqr_params_pre_generate` hook. Accepted values are `l` (7%), `m` (15%), `q` (25%), and `h` (30%).

## 1.0

- Updated version to 1.0. Gravity Forms QR Code is officially out of beta!

## 1.0-beta-2.5

- Added new [`gpqr_content_pre_generate`](https://gravitywiz.com/documentation/gpqr_content_pre_generate) and [`gpqr_params_pre_generate`](https://gravitywiz.com/documentation/gpqr_params_pre_generate) PHP filter hooks.

## 1.0-beta-2.4

- Improved support for creating codes in situations where the WordPress filesystem is set to something other than `direct`.

## 1.0-beta-2.3

- Added new `sizefactor` modifier/attribute that can be used with non-QR code types such as PDF417 and UPCA. As an example, `:sizefactor[2]` will double the size and `:sizefactor[.5]` will halve the size.

## 1.0-beta-2.2

- Fixed issue with the `bg_color` and `fg_color` modifiers/attributes not being correctly converted from hex to RGB for QR codes.

## 1.0-beta-2.1

- Fixed QR scanner button placement with GP Word Count.

## 1.0-beta-2.0

- Added support for a new `type` modifier than can be used to generate other types of codes such as `UPCA` or `PDF417`. Example: `{Label:1:qr,type[PDF417]}`.

## 1.0-beta-1.3

- Added support for using the `url` modifier with the `qr` modifier in merge tags.

## 1.0-beta-1.2

- Added new [`gpqr_on_scan_success`](https://gravitywiz.com/documentation/gpqr_on_scan_success) JavaScript action.

## 1.0-beta-1.1

- Fixed issue where QR codes failing to generate could cause a fatal error.

## 1.0-beta-1

- Added support for optionally passing hex colors to `fg_color` and `bg_color` merge tag modifiers/shortcode attributes to control the foreground and background colors of the QR code.
- Added `[gpqr]` shortcode.
- Added support for more generic merge tags such as `{entry_url:qr}` and `{user:display_name,qr}`
- Added new `gpqr_is_supported_field` JavaScript filter and added support for coupon fields.
- Added `gpqr_scanner_config` JavaScript filter.
- Added i18n
- Improved basic styling of QR Code scanner.
- Added "Update URI" to plugin header to improve security.

## 1.0-alpha-1

- Hello World!
