woocommerce_api_order_note_response

woocommerce_api_order_note_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_order_note_response') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 1268
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
                'note'          => $note->comment_content,
                'customer_note' => (bool) get_comment_meta( $note->comment_ID, 'is_customer_note', true ),
            );
     
            return array( 'order_note' => apply_filters( 'woocommerce_api_order_note_response', $order_note, $id, $fields, $note, $order_id, $this ) );
        } catch ( WC_API_Exception $e ) {
            return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
        }
    }
     
    /**
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1313
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
                'note'          => $note->comment_content,
                'customer_note' => (bool) get_comment_meta( $note->comment_ID, 'is_customer_note', true ),
            );
     
            return array( 'order_note' => apply_filters( 'woocommerce_api_order_note_response', $order_note, $id, $fields, $note, $order_id, $this ) );
        } catch ( WC_API_Exception $e ) {
            return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
        }
    }
     
    /**