Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_ticket_reports_link( deprecated $event_id_deprecated, int $ticket_id )
Links to the sales report for this product.
Contents
As of 4.6 we reversed the params and deprecated $event_id as it was never used
Parameters
- $event_id_deprecated
-
(deprecated) (Required) ID of the event post
- $ticket_id
-
(int) (Required) (null) id of the ticket
Return
(string)
Source
File: src/Tribe/Commerce/WooCommerce/Main.php
public function get_ticket_reports_link( $event_id_deprecated, $ticket_id ) {
if ( ! empty( $event_id_deprecated ) ) {
_deprecated_argument( __METHOD__, '4.6' );
}
if ( empty( $ticket_id ) ) {
return '';
}
$query = array(
'page' => 'wc-reports',
'tab' => 'orders',
'report' => 'sales_by_product',
'product_ids' => $ticket_id,
);
return add_query_arg( $query, admin_url( 'admin.php' ) );
}