woocommerce_api_edit_order_note

woocommerce_api_edit_order_note

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_edit_order_note') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 1396
    1393
    1394
    1395
    1396
    1397
    1398
    1399
    1400
    1401
    1402
            update_comment_meta( $note->comment_ID, 'is_customer_note', true === $data['customer_note'] ? 1 : 0 );
        }
     
        do_action( 'woocommerce_api_edit_order_note', $note->comment_ID, $order->get_id(), $this );
     
        return $this->get_order_note( $order->get_id(), $note->comment_ID );
    } catch ( WC_Data_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => 400 ) );
    } 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 1441
    1438
    1439
    1440
    1441
    1442
    1443
    1444
    1445
    1446
    1447
            update_comment_meta( $note->comment_ID, 'is_customer_note', true === $data['customer_note'] ? 1 : 0 );
        }
     
        do_action( 'woocommerce_api_edit_order_note', $note->comment_ID, $order->get_id(), $this );
     
        return $this->get_order_note( $order->get_id(), $note->comment_ID );
    } catch ( WC_Data_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => 400 ) );
    } catch ( WC_API_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );