gp_qr_code_merge_tag_value
Description
Filters the QR Code merge tag value.
Usage
add_filter( 'gp_qr_code_merge_tag_value', 'my_custom_function' );
Parameters
value string
The QR code merge tag value.
qr_url string
The QR code URL.
merge_tag_value string
The raw value of the merge tag that has been converted into a QR code.
modifiers array
The merge tag modifiers.
form array|null
The current form (if provided).
entry array|null
The current entry (if provided).
Since
This filter is available since Gravity Forms QR Code 1.0.10.
Examples
Custom Modifiers
Create a custom modifier. This example adds a “filename” modifier that returns the filename of the generated QR code. This code would be activated with a merge tag like so: {My Field:1:qr,filename}
.
add_filter( 'gp_qr_code_merge_tag_value', function( $value, $qr_url, $merge_tag_value, $modifiers, $form, $entry ) {
if ( isset( $modifiers['filename'] ) ) {
$value = pathinfo( $qr_url, PATHINFO_BASENAME );
}
return $value;
}, 10, 5 );
All Connections
All Perks
- GF Address Autocomplete
- GF Advanced Calculations
- GF Advanced Phone Field
- GF Advanced Save & Continue
- GF Advanced Select
- GF Auto List Field
- GF Auto Login
- GF Better User Activation
- GF Blocklist
- GF Bookings
- GF Conditional Logic Dates
- GF Conditional Pricing
- GF Copy Cat
- GF Date Time Calculator
- GF Disable Entry Creation
- GF Easy Passthrough
- GF eCommerce Fields
- GF Email Users
- GF Email Validator
- GF Entry Blocks
- GF Expand Textareas
- GF File Renamer
- GF File Upload Pro
- GF Inventory
- GF Limit Checkboxes
- GF Limit Dates
- GF Limit Submissions
- GF Live Preview
- GF Media Library
- GF Multi-Page Navigation
- GF Nested Forms
- GF Notification Scheduler
- GF Page Transitions
- GF Pay Per Word
- GF Populate Anything
- GF Post Content Merge Tags
- GF Preview Submission
- GF Price Range
- GF QR Code
- GF Randomizer
- GF Read Only
- GF Reload Form
- GF Submit to Access
- GF Terms Of Service
- GF Unique ID
- GF Word Count