Tribe__Tickets_Plus__Commerce__EDD__Main::print_ticket_url( array $args = array() )
Setup the print ticket URL so that a print view is rendered instead of a download file
Contents
Parameters
- $args
-
(array) (Optional)
Default value: array()
Return
(array)
Source
File: src/Tribe/Commerce/EDD/Main.php
public function print_ticket_url( $args = array() ) {
// Determine if this is a ticket product
if ( ! get_post_meta( $args['download_id'], $this->event_key, true ) ) {
return $args;
}
// Interfere only with the tickets link (thus allowing additional files to be downloaded
// as part of the purchase)
if ( ! $this->is_print_ticket_item( $args ) ) {
return $args;
}
$args = array(
'edd_action' => 'print_ticket',
'download_id' => $args['download_id'],
'download_key' => $args['download_key'],
'file' => self::TICKET_DOWNLOAD,
);
return $args;
}