woocommerce_api_edit_order_note_data

woocommerce_api_edit_order_note_data

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_edit_order_note_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 1377
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    1381
    1382
    1383
    if ( $note->comment_post_ID != $order->get_id() ) {
        throw new WC_API_Exception( 'woocommerce_api_invalid_order_note_id', __( 'The order note ID provided is not associated with the order', 'woocommerce' ), 400 );
    }
     
    $data = apply_filters( 'woocommerce_api_edit_order_note_data', $data, $note->comment_ID, $order->get_id(), $this );
     
    // Note content
    if ( isset( $data['note'] ) ) {
     
        wp_update_comment(
            array(
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1422
    1418
    1419
    1420
    1421
    1422
    1423
    1424
    1425
    1426
    1427
    1428
    if ( $note->comment_post_ID != $order->get_id() ) {
        throw new WC_API_Exception( 'woocommerce_api_invalid_order_note_id', __( 'The order note ID provided is not associated with the order', 'woocommerce' ), 400 );
    }
     
    $data = apply_filters( 'woocommerce_api_edit_order_note_data', $data, $note->comment_ID, $order->get_id(), $this );
     
    // Note content
    if ( isset( $data['note'] ) ) {
     
        wp_update_comment(
            array(