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 );
- $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.
- $attr
See Parameters.
Version | Description |
---|---|
1.0 | Introduced. |
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 );