fast_events_scan_ticket ======================= This action is called after the ticket has been scanned. Be careful not to include code that has a long execution time as it directly influences the response time of the mobile scan app. .. code-block:: php :linenos: `_. 3. **'scan_location'** (*string*) The location of the scan. ---- Return ------ None ---- Changelog --------- .. csv-table:: :header: "Version", "Description" :width: 100% :widths: auto "1.0", "Introduced." "1.9.3", "Added order_id and qrcode." ---- Examples -------- Send “Thank you” email after exit scan ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Send a “*Thank you for visiting*” email to users who pass the exit scan (level = 9). You can of course trigger on another level or any other attribute. Use the internal function ``fe_helper_func()->send_email()`` to send an email which will use the credentials defined in the plugin settings. .. code-block:: php :linenos: Dear ' . $attr['name'] . ',
' . 'Thank you for visiting our event. Hope to see you next year
' . 'Vintage Vinyl Open Air 2019 team
'; fast_events_helper_func()->send_email( $attr['email'], "Thank you for visiting Vintage Vinyl Open Air 2019", $message ); } } add_action( 'fast_events_scan_ticket', 'your_action_scan_ticket', 10, 2 ); Send “Thank you” email with detailed scan info ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Send a “*Thank you for visiting*” email to users who pass the exit scan (level = 9) and also email them the detailed info on when they passed all checkpoints during the bicycle tour. You can of course trigger on another level or any other attribute. Use the internal function ``fe_helper_func()->send_email()`` to send an email which will use the credentials defined in the plugin settings. .. code-block:: php :linenos: Dear ' . $attr['name'] . ',' . 'Thank you for participating in our bicycle tour. Hope to see you next year.' . 'Below are the times when you passed the checkpoints.
| ' . $value->scan_date . ' | ' . $value->scan_location . ' |
The National bicycle tour team
'; fast_events_helper_func()->send_email( $attr['email'], "Thank you for participating in our bicycle tour", $message ); } } add_action( 'fast_events_scan_ticket', 'your_action_scan_ticket', 10, 2 );