woocommerce_api_customer_orders_response

woocommerce_api_customer_orders_response

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_customer_orders_response') is found 2 times:

  • /includes/legacy/api/v1/class-wc-api-customers.php line 278
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
        foreach ( $order_ids as $order_id ) {
            $orders[] = current( WC()->api->WC_API_Orders->get_order( $order_id, $fields ) );
        }
     
        return array( 'orders' => apply_filters( 'woocommerce_api_customer_orders_response', $orders, $id, $fields, $order_ids, $this->server ) );
    }
     
    /**
     * Helper method to get customer user objects
     *
     * Note that WP_User_Query does not have built-in pagination so limit & offset are used to provide limited
  • /includes/legacy/api/v2/class-wc-api-customers.php line 501
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
        foreach ( $order_ids as $order_id ) {
            $orders[] = current( WC()->api->WC_API_Orders->get_order( $order_id, $fields ) );
        }
     
        return array( 'orders' => apply_filters( 'woocommerce_api_customer_orders_response', $orders, $id, $fields, $order_ids, $this->server ) );
    }
     
    /**
     * Get the available downloads for a customer
     *
     * @since 2.2