fast_events_scan_filter_output

This filter is called just before the output is sent back to the Android or IOS scan app. You can change any of the text lines in the qrcode block.

1
2
3
4
5
6
7
<?php
function your_filter_scan_filter_output( $attr ) {
  // Do your manipulation here
  return $attr;
}

add_filter( 'fast_events_scan_error_text', 'your_filter_scan_filter_output', 10, 1 );

Parameters

$attr[‘event’]

(string) The name of the event.

$attr[‘type’]

(string) The ticket type (Eg. Silver, Backstage, …).

$attr[‘name’]

(string) The name of the person placing the order.

$attr[‘email’]

(string) The emailaddress of the person placing the order. This value is read-only.

$attr[‘date’]

(string) The date when the ticket was scanned. Format YYYY-MM-DD HH:MM:SS.

$attr[‘location’]

(string) The location where the ticket was scanned. Comes from Tickets tab.


Return

$attr

See Parameters.


Changelog

Version

Description

1.0

Introduced.


Examples

Filter scan output

For privacy reasons remove the name and emailaddress from the output.

1
2
3
4
5
6
7
8
<?php
function your_filter_scan_filter_output( $attr ) {
  $attr['name']  = '';
  $attr['email'] = '';
  return $attr;
}

add_filter( 'fast_events_scan_filter_output', 'your_filter_scan_filter_output', 10, 1 );