Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Refunded::get_order_ids( $order_item_ids_interval )
Get the actual order ids for the ticket, given the mapped values
Return
(string)
Source
File: src/Tribe/Commerce/WooCommerce/Orders/Refunded.php
public function get_order_ids( $order_item_ids_interval ) {
global $wpdb;
$wc_order_items_table = $wpdb->prefix . 'woocommerce_order_items';
$order_ids = $wpdb->get_results(
"SELECT order_id, order_item_id FROM {$wc_order_items_table} WHERE order_item_id IN ({$order_item_ids_interval})"
);
return implode( ',', wp_list_pluck( $order_ids, 'order_id' ) );
}
Changelog
| Version | Description |
|---|---|
| 5.9.1 | Updated logic to new WooCommerce HPOS requirement. |
| 4.7.3 | Introduced. |