Skip to content

Commit

Permalink
= 4.2.7.3 =
Browse files Browse the repository at this point in the history
~ Tweak: get_all_items, add get columns order_item_id, order_item_name
  • Loading branch information
tungnxt89 committed Oct 24, 2024
1 parent ddf11d1 commit 5f1b9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/order/class-lp-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public function get_items() {
* Where call this function, must be careful, must set_time_limit( 0 );.
*
* @return array|object|stdClass[]|null
* @version 1.0.0
* @version 1.0.1
* @since 4.2.7.2
*/
public function get_all_items() {
Expand All @@ -489,7 +489,7 @@ public function get_all_items() {
$table_order_items = $lp_order_items->tb_lp_order_items;

$query = $wpdb->prepare(
"SELECT item_id, item_type
"SELECT order_item_id, order_item_name, item_id, item_type
From $table_order_items
WHERE order_id = %d",
$this->get_id()
Expand Down

0 comments on commit 5f1b9f7

Please sign in to comment.