Tribe__Tickets_Plus__Commerce__WooCommerce__Main::add_resend_tickets_action( $emails )
Adds an action to resend the tickets to the customer in the WooCommerce actions dropdown, in the order edit screen.
Contents
Parameters
- $emails
-
(Required)
Return
(array)
Source
File: src/Tribe/Commerce/WooCommerce/Main.php
public function add_resend_tickets_action( $emails ) {
$order = get_the_ID();
if ( empty( $order ) ) {
return $emails;
}
$has_tickets = get_post_meta( $order, $this->order_has_tickets, true );
if ( ! $has_tickets ) {
return $emails;
}
if ( version_compare( wc()->version, '3.2.0', '>=' ) ) {
$emails['resend_tickets_email'] = esc_html__( 'Resend tickets email', 'event-tickets-plus' );
} else {
$emails[] = 'wootickets';
}
return $emails;
}