fast_events_ticket_text

This filter is called just before the text of the qrcode block is printed on the ticket template.

1<?php
2function your_filter_ticket_text( $attr ) {
3  // Do your manipulation here
4  return $attr;
5}
6
7add_filter( 'fast_events_ticket_text', 'your_filter_ticket_text', 10, 1 );

Parameters

$attr[‘event_name’]

(string) The name of the event.

$attr[‘ticket_type’]

(string) The name of the ticket.

$attr[‘event_date’]

(string) The date of the event.

$attr[‘order_id’]

(string) The order id. Example ‘Order #2914’. Mind you the word Order may be translated.

$attr[‘name’]

(string) The name of the person who placed the order.

$attr[‘email’]

(string) The emailaddress of the person who placed the order.


Return

$attr

See Parameters.


Changelog

Version

Description

1.0

Introduced.


Examples

Remove order-id from tickets

Remove the order-id string from the ticket qrcode info-block.

1<?php
2function your_filter_ticket_text( $attr ) {
3  $attr['order_id'] = '';
4  return $attr;
5}
6
7add_filter( 'fast_events_ticket_text', 'your_filter_ticket_text', 10, 1 );