Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.43 KB

ticket_text.rst

File metadata and controls

69 lines (53 loc) · 1.43 KB

fast_events_ticket_text

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

<?php
function your_filter_ticket_text( $attr ) {
  // Do your manipulation here
  return $attr;
}

add_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.

<?php
function your_filter_ticket_text( $attr ) {
  $attr['order_id'] = '';
  return $attr;
}

add_filter( 'fast_events_ticket_text', 'your_filter_ticket_text', 10, 1 );