woocommerce_api_order_notes_response

woocommerce_api_order_notes_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_order_notes_response') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-orders.php line 344
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
                'customer_note' => (bool) get_comment_meta( $note->comment_ID, 'is_customer_note', true ),
            );
        }
     
        return array( 'order_notes' => apply_filters( 'woocommerce_api_order_notes_response', $order_notes, $id, $fields, $notes, $this->server ) );
    }
     
    /**
     * Helper method to get order post objects
     *
     * @since 2.1
  • /includes/legacy/api/v2/class-wc-api-orders.php line 1226
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
            $order_notes[] = current( $this->get_order_note( $order_id, $note->comment_ID, $fields ) );
        }
     
        return array( 'order_notes' => apply_filters( 'woocommerce_api_order_notes_response', $order_notes, $order_id, $fields, $notes, $this->server ) );
    }
     
    /**
     * Get an order note for the given order ID and ID
     *
     * @since 2.2
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1271
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
            $order_notes[] = current( $this->get_order_note( $order_id, $note->comment_ID, $fields ) );
        }
     
        return array( 'order_notes' => apply_filters( 'woocommerce_api_order_notes_response', $order_notes, $order_id, $fields, $notes, $this->server ) );
    }
     
    /**
     * Get an order note for the given order ID and ID
     *
     * @since 2.2